code: def get_detector_cfg(fname):
      """Grab configs necessary to create a detector.
  
      These are deep copied to allow for safe modification of parameters without
      influencing other tests.
      """
      config = _get_config_module(fname)
      model = copy.deepcopy(config.model)
      return model
  
imports: import copy
  from os.path import dirname, exists, join
  import numpy
  import torch
  from mmengine.config import Config
  from mmengine.dataset import pseudo_collate
  from mmengine.structures import InstanceData, PixelData
  from mmdet.utils.util_random import ensure_rng
  from ..registry import TASK_UTILS
  from ..structures import DetDataSample, TrackDataSample
  from ..structures.bbox import HorizontalBoxes
label_desc: Use image node_id 3 for calling a global function with example usage: get_detector_cfg(fname) and returns: model