src/transformers/models/yolos/image_processing_yolos.py/YolosImageProcessor/max_size
class YolosImageProcessor:    def max_size(self):
        warnings.warn(
            "The `max_size` parameter is deprecated and will be removed in v4.27. "
            "Please specify in `size['longest_edge'] instead`.",
            FutureWarning,
        )
        return self.size["longest_edge"]