src/transformers/models/detr/image_processing_detr.py/DetrImageProcessor/prepare
class DetrImageProcessor:    def prepare(self, image, target, return_segmentation_masks=None, masks_path=None):
        warnings.warn(
            "The `prepare` method is deprecated and will be removed in a future version. "
            "Please use `prepare_annotation` instead. Note: the `prepare_annotation` method "
            "does not return the image anymore.",
        )
        target = self.prepare_annotation(image, target, return_segmentation_masks, masks_path, self.format)
        return image, target