class_docstr: Constructs an KOSMOS-2 processor which wraps a KOSMOS-2 image processor and a KOSMOS-2 tokenizer into a single
  processor.
  
  [`Kosmos2Processor`] offers all the functionalities of [`CLIPImageProcessor`] and some functionalities of
  [`XLMRobertaTokenizerFast`]. See the docstring of [`~Kosmos2Processor.__call__`] and [`~Kosmos2Processor.decode`]
  for more information.
  
  Args:
      image_processor (`CLIPImageProcessor`):
          An instance of [`CLIPImageProcessor`]. The image processor is a required input.
      tokenizer (`XLMRobertaTokenizerFast`):
          An instance of ['XLMRobertaTokenizerFast`]. The tokenizer is a required input.
      num_patch_index_tokens (`int`, *optional*, defaults to 1024):
          The number of tokens that represent patch indices.
docstr: This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.batch_decode`]. Please
  refer to the docstring of this method for more information.
docstr_tok: ["This","method","forwards","all","its","arguments","to","PreTrainedTokenizer","'s","[","`","~PreTrainedTokenizer.batch_decode","`","]",".","Please","refer","to","the","docstring","of","this","method","for","more","information","."]
code: def batch_decode(self, *args, **kwargs):
      """
      This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.batch_decode`]. Please
      refer to the docstring of this method for more information.
      """
      return self.tokenizer.batch_decode(*args, **kwargs)
  
imports: import copy
  import math
  import re
  from typing import List, Optional, Tuple, Union
  from ...image_processing_utils import BatchFeature
  from ...image_utils import ImageInput, is_batched
  from ...processing_utils import ProcessorMixin
  from ...tokenization_utils import AddedToken
  from ...tokenization_utils_base import BatchEncoding, PaddingStrategy, TextInput, TruncationStrategy
  from ...utils import TensorType
label_desc: Use image node_id 6 for calling the Kosmos2Processor obj's underlying member method code with example usage: obj.batch_decode() and returns: self