docstr: Load a configuration as a python module.
docstr_tok: ["Load","a","configuration","as","a","python","module","."]
code: def _get_config_module(self, fname: str) -> "ConfigDict":
      """Load a configuration as a python module."""
      config_dpath = self._get_config_directory()
      config_fpath = join(config_dpath, fname)
      config_mod = Config.fromfile(config_fpath)
      return config_mod
  
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 2 for calling the TestSDMGR obj's underlying member method code with example usage: obj._get_config_module(fname) and returns: config_mod