src/transformers/pipelines/zero_shot_image_classification.py/ZeroShotImageClassificationPipeline/_sanitize_parameters
class ZeroShotImageClassificationPipeline:    def _sanitize_parameters(self, **kwargs):
        preprocess_params = {}
        if "candidate_labels" in kwargs:
            preprocess_params["candidate_labels"] = kwargs["candidate_labels"]
        if "hypothesis_template" in kwargs:
            preprocess_params["hypothesis_template"] = kwargs["hypothesis_template"]

        return preprocess_params, {}, {}