docstr: Grab necessary configs necessary to create a detector.
  
  These are deep copied to allow for safe modification of parameters
  without influencing other tests.
docstr_tok: ["Grab","necessary","configs","necessary","to","create","a","detector",".","These","are","deep","copied","to","allow","for","safe","modification","of","parameters","without","influencing","other","tests","."]
code: def _get_detector_cfg(self, fname: str) -> "ConfigDict":
      """Grab necessary 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)
      return model
  
file_path: mmocr/tests/test_models/test_textdet/test_detectors/test_drrg.py
imports: import copy
  import unittest
  from os.path import dirname, exists, join
  from unittest import mock
  import numpy
  import torch
  from mmengine.config import Config, ConfigDict
  from mmengine.registry import init_default_scope
  from mmocr.registry import MODELS
  from mmocr.testing.data import create_dummy_textdet_inputs
label_desc: Use image node_id 8 for calling the TestDRRG obj's underlying member method code with example usage: obj._get_detector_cfg(fname) and returns: model