code: def get_processor(cfg, sample_rate: int = 24000):
      sample_processor = SampleProcessor()
      if cfg.use:
          kw = dict(cfg)
          kw.pop("use")
          kw.pop("name")
          if cfg.name == "multi_band_processor":
              sample_processor = MultiBandProcessor(
                  sample_rate=sample_rate, **kw
              )
      return sample_processor
  
imports: import typing
  import audiocraft
  import omegaconf
  import torch
  from .encodec import CompressionModel, EncodecModel, InterleaveStereoCompressionModel
  from .lm import LMModel
  from .lm_magnet import MagnetLMModel
  from ..modules.codebooks_patterns import CodebooksPatternProvider, DelayedPatternProvider, MusicLMPattern, ParallelPatternProvider, UnrolledPatternProvider, CoarseFirstPattern
  from ..modules.conditioners import BaseConditioner, ChromaStemConditioner, CLAPEmbeddingConditioner, ConditionFuser, ConditioningProvider, LUTConditioner, T5Conditioner
  from .unet import DiffusionUnet
  from ..None import quantization
  from ..utils.utils import dict_from_config
  from ..modules.diffusion_schedule import MultiBandProcessor, SampleProcessor
label_desc: Use image node_id 10 for calling a global function with example usage: get_processor(cfg, sample_rate) and returns: sample_processor