class_docstr: Constructs a Donut processor which wraps a Donut feature extractor and an XLMRoBERTa tokenizer into a single
  processor.
  
  [`DonutProcessor`] offers all the functionalities of [`DonutFeatureExtractor`] and
  [`XLMRobertaTokenizer`/`XLMRobertaTokenizerFast`]. See the [`~DonutProcessor.__call__`] and
  [`~DonutProcessor.decode`] for more information.
  
  Args:
      feature_extractor ([`DonutFeatureExtractor`]):
          An instance of [`DonutFeatureExtractor`]. The feature extractor is a required input.
      tokenizer ([`XLMRobertaTokenizer`/`XLMRobertaTokenizerFast`]):
          An instance of [`XLMRobertaTokenizer`/`XLMRobertaTokenizerFast`]. The tokenizer is a required input.
code: def __init__(self, feature_extractor, tokenizer):
      super().__init__(feature_extractor, tokenizer)
      self.current_processor = self.feature_extractor
      self._in_target_context_manager = False
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/models/donut/processing_donut.py
imports: import re
  import warnings
  from contextlib import contextmanager
  from ...processing_utils import ProcessorMixin
label_desc: Use image node_id 1 to create a new DonutProcessor object from inherited base classes: ProcessorMixin with example: obj = DonutProcessor(feature_extractor, tokenizer)