src/transformers/models/detr/feature_extraction_detr.py/DetrFeatureExtractor/_is_valid_format
class DetrFeatureExtractor:    def _is_valid_format(self, format):
        if format not in ["coco_detection", "coco_panoptic"]:
            raise ValueError(f"Format {format} not supported")
        return format