class_docstr: Constructs a MusicGen processor which wraps an EnCodec feature extractor and a T5 tokenizer into a single processor
  class.
  
  [`MusicgenProcessor`] offers all the functionalities of [`EncodecFeatureExtractor`] and [`TTokenizer`]. See
  [`~MusicgenProcessor.__call__`] and [`~MusicgenProcessor.decode`] for more information.
  
  Args:
      feature_extractor (`EncodecFeatureExtractor`):
          An instance of [`EncodecFeatureExtractor`]. The feature extractor is a required input.
      tokenizer (`T5Tokenizer`):
          An instance of [`T5Tokenizer`]. 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: transformers/src/transformers/models/musicgen/processing_musicgen.py
imports: from typing import List, Optional
  import numpy
  from ...processing_utils import ProcessorMixin
  from ...utils import to_numpy
label_desc: Use image node_id 1 to create a new MusicgenProcessor object from inherited base classes: ProcessorMixin with example: obj = MusicgenProcessor(feature_extractor, tokenizer)