code: def _inject_mock(req: Dict[str, Any], d: Dict[str, Any]) -> None:
      for k, v in req.items():
          kd = d.setdefault(k, {})
          if isinstance(v, dict):
              _inject_mock(v, kd)
              continue
          assert isinstance(v, list)
          for vv in v:
              if vv == "img_size":
                  kd[vv] = 112
              elif vv == "num_classes":
                  kd[vv] = 12
              elif (
                  vv == "pretrained_ckpt" or vv == "lv1_model_ckpt_path"
              ):
                  kd[vv] = "foo.pt"
              # hugging_face/general
              elif vv == "model":
                  kd[vv] = "peterchou/simbert-chinese-base"
              # hugging_face/opus
              elif vv == "src":
                  kd[vv] = "zh"
              elif vv == "tgt":
                  kd[vv] = "en"
              # clip_vqgan_aligner
              elif vv == "text":
                  kd[vv] = "carefree-learn"
  
file_path: carefree-learn/tests/test_zoo.py
imports: import cflearn
  import unittest
  from typing import Any
  from typing import Dict
label_desc: Use image node_id 1 for calling a global function with example usage: _inject_mock(req, d) without return types