docstr: Grab configs necessary to create a detector.
  
  These are deep copied to allow for safe modification of parameters
  without influencing other tests.
docstr_tok: ["Grab","configs","necessary","to","create","a","detector",".","These","are","deep","copied","to","allow","for","safe","modification","of","parameters","without","influencing","other","tests","."]
code: def _get_cfg(self, fname: str) -> "ConfigDict":
      """Grab configs necessary to create a detector.
  
      These are deep copied to allow for safe modification of parameters
      without influencing other tests.
      """
      config = self._get_config_module(fname)
      model = copy.deepcopy(config.model)
      model.dictionary.dict_file = "dicts/lower_english_digits.txt"
      return model
  
file_path: mmocr/tests/test_models/test_kie/test_extractors/test_sdmgr.py
imports: import copy
  import unittest
  from os.path import dirname, exists, join
  import torch
  from mmengine.config import Config, ConfigDict
  from mmengine.structures import InstanceData
  from mmocr.registry import MODELS
  from mmocr.structures import KIEDataSample
label_desc: Use image node_id 3 for calling the TestSDMGR obj's underlying member method code with example usage: obj._get_cfg(fname) and returns: model