class_docstr: Constructs a Chinese-CLIP processor which wraps a Chinese-CLIP image processor and a Chinese-CLIP tokenizer into a
  single processor.
  
  [`ChineseCLIPProcessor`] offers all the functionalities of [`ChineseCLIPImageProcessor`] and [`BertTokenizerFast`].
  See the [`~ChineseCLIPProcessor.__call__`] and [`~ChineseCLIPProcessor.decode`] for more information.
  
  Args:
      image_processor ([`ChineseCLIPImageProcessor`], *optional*):
          The image processor is a required input.
      tokenizer ([`BertTokenizerFast`], *optional*):
          The tokenizer is a required input.
class_docstr_tok: ["Constructs","a","Chinese-CLIP","processor","which","wraps","a","Chinese-CLIP","image","processor","and","a","Chinese-CLIP","tokenizer","into","a","single","processor",".","[","`","ChineseCLIPProcessor","`","]","offers","all","the","functionalities","of","[","`","ChineseCLIPImageProcessor","`","]","and","[","`","BertTokenizerFast","`","]",".","See","the","[","`","~ChineseCLIPProcessor.__call__","`","]","and","[","`","~ChineseCLIPProcessor.decode","`","]","for","more","information",".","Args",":","image_processor","(","[","`","ChineseCLIPImageProcessor","`","]",",","*","optional","*",")",":","The","image","processor","is","a","required","input",".","tokenizer","(","[","`","BertTokenizerFast","`","]",",","*","optional","*",")",":","The","tokenizer","is","a","required","input","."]
code: def __init__(self, image_processor=None, tokenizer=None, **kwargs):
      feature_extractor = None
      if "feature_extractor" in kwargs:
          warnings.warn(
              "The `feature_extractor` argument is deprecated and will be removed in v5, use `image_processor`"
              " instead.",
              FutureWarning,
          )
          feature_extractor = kwargs.pop("feature_extractor")
  
      image_processor = (
          image_processor
          if image_processor is not None
          else feature_extractor
      )
      if image_processor is None:
          raise ValueError("You need to specify an `image_processor`.")
      if tokenizer is None:
          raise ValueError("You need to specify a `tokenizer`.")
  
      super().__init__(image_processor, tokenizer)
      self.current_processor = self.image_processor
  
file_path: transformers/src/transformers/models/chinese_clip/processing_chinese_clip.py
imports: import warnings
  from ...processing_utils import ProcessorMixin
  from ...tokenization_utils_base import BatchEncoding
label_desc: Use image node_id 1 to create a new ChineseCLIPProcessor object from inherited base classes: ProcessorMixin with example: obj = ChineseCLIPProcessor(image_processor, tokenizer)