code: def get_debug_compression_model(
      device="cpu", sample_rate: int = 32000
  ):
      """Instantiate a debug compression model to be used for unit tests."""
      assert sample_rate in [
          16000,
          32000,
      ], "unsupported sample rate for debug compression model"
      model_ratios = {
          16000: [10, 8, 8],  # 25 Hz at 16kHz
          32000: [10, 8, 16],  # 25 Hz at 32kHz
      }
      ratios: tp.List[int] = model_ratios[sample_rate]
      frame_rate = 25
      seanet_kwargs: dict = {
          "n_filters": 4,
          "n_residual_layers": 1,
          "dimension": 32,
          "ratios": ratios,
      }
      encoder = audiocraft.modules.SEANetEncoder(**seanet_kwargs)
      decoder = audiocraft.modules.SEANetDecoder(**seanet_kwargs)
      quantizer = qt.ResidualVectorQuantizer(
          dimension=32, bins=400, n_q=4
      )
      init_x = torch.randn(8, 32, 128)
      quantizer(init_x, 1)  # initialize kmeans etc.
      compression_model = EncodecModel(
          encoder,
          decoder,
          quantizer,
          frame_rate=frame_rate,
          sample_rate=sample_rate,
          channels=1,
      ).to(device)
      return compression_model.eval()
  
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 8 for calling a global function with example usage: get_debug_compression_model(device, sample_rate) and returns: compression_model