class_docstr: Constructs a PIX2STRUCT processor which wraps a BERT tokenizer and PIX2STRUCT image processor into a single
  processor.
  
  [`Pix2StructProcessor`] offers all the functionalities of [`Pix2StructImageProcessor`] and [`T5TokenizerFast`]. See
  the docstring of [`~Pix2StructProcessor.__call__`] and [`~Pix2StructProcessor.decode`] for more information.
  
  Args:
      image_processor (`Pix2StructImageProcessor`):
          An instance of [`Pix2StructImageProcessor`]. The image processor is a required input.
      tokenizer (Union[`T5TokenizerFast`, `T5Tokenizer`]):
          An instance of ['T5TokenizerFast`] or ['T5Tokenizer`]. The tokenizer is a required input.
class_docstr_tok: ["Constructs","a","PIX2STRUCT","processor","which","wraps","a","BERT","tokenizer","and","PIX2STRUCT","image","processor","into","a","single","processor",".","[","`","Pix2StructProcessor","`","]","offers","all","the","functionalities","of","[","`","Pix2StructImageProcessor","`","]","and","[","`","T5TokenizerFast","`","]",".","See","the","docstring","of","[","`","~Pix2StructProcessor.__call__","`","]","and","[","`","~Pix2StructProcessor.decode","`","]","for","more","information",".","Args",":","image_processor","(","`","Pix2StructImageProcessor","`",")",":","An","instance","of","[","`","Pix2StructImageProcessor","`","]",".","The","image","processor","is","a","required","input",".","tokenizer","(","Union","[","`","T5TokenizerFast","`",",","`","T5Tokenizer","`","]",")",":","An","instance","of","[","'T5TokenizerFast","`","]","or","[","'T5Tokenizer","`","]",".","The","tokenizer","is","a","required","input","."]
code: def __init__(self, image_processor, tokenizer):
      tokenizer.return_token_type_ids = False
      super().__init__(image_processor, tokenizer)
  
file_path: transformers/src/transformers/models/pix2struct/processing_pix2struct.py
imports: from typing import List, Optional, Union
  from ...processing_utils import ProcessorMixin
  from ...tokenization_utils_base import BatchEncoding, PaddingStrategy, PreTokenizedInput, TextInput, TruncationStrategy
  from ...utils import TensorType
label_desc: Use image node_id 1 to create a new Pix2StructProcessor object from inherited base classes: ProcessorMixin with example: obj = Pix2StructProcessor(image_processor, tokenizer)