src/transformers/models/clip/processing_clip.py/CLIPProcessor/__init__
class CLIPProcessor:    def __init__(self, feature_extractor, tokenizer):
        if not isinstance(feature_extractor, CLIPFeatureExtractor):
            raise ValueError(
                f"`feature_extractor` has to be of type CLIPFeatureExtractor, but is {type(feature_extractor)}"
            )
        if not isinstance(tokenizer, CLIPTokenizer):
            raise ValueError(f"`tokenizer` has to be of type CLIPTokenizer, but is {type(tokenizer)}")

        self.feature_extractor = feature_extractor
        self.tokenizer = tokenizer
        self.current_processor = self.feature_extractor