def METHOD_NAME(self):
    warnings.warn(
        "`feature_extractor` is deprecated and will be removed in v5. Use `image_processor` instead.",
        FutureWarning,
    )
    return self.image_processor