code: def get_debug_lm_model(device="cpu"):
      """Instantiate a debug LM to be used for unit tests."""
      pattern = DelayedPatternProvider(n_q=4)
      dim = 16
      providers = {
          "description": LUTConditioner(
              n_bins=128,
              dim=dim,
              output_dim=dim,
              tokenizer="whitespace",
          ),
      }
      condition_provider = ConditioningProvider(providers)
      fuser = ConditionFuser(
          {
              "cross": ["description"],
              "prepend": [],
              "sum": [],
              "input_interpolate": [],
          }
      )
      lm = LMModel(
          pattern,
          condition_provider,
          fuser,
          n_q=4,
          card=400,
          dim=dim,
          num_heads=4,
          custom=True,
          num_layers=2,
          cross_attention=True,
          causal=True,
      )
      return lm.to(device).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 11 for calling a global function with example usage: get_debug_lm_model(device) and returns: lm