code: def _get_module_name_qconfig(
      qconfig_mapping, module_name, fallback_qconfig
  ):
      if module_name == "":
          # module name qconfig not found
          return fallback_qconfig
      if module_name in qconfig_mapping.module_name_qconfigs:
          return qconfig_mapping.module_name_qconfigs[module_name]
      else:
          parent, _ = _parent_name(module_name)
          return _get_module_name_qconfig(
              qconfig_mapping, parent, fallback_qconfig
          )
  
imports: import torch
  import re
  from collections import defaultdict, OrderedDict
  from typing import Callable, Any, Dict, Tuple, Set, List, Union
  from torch.ao.quantization import QConfig
  from torch.ao.quantization.qconfig import _add_module_to_qconfig_obs_ctr, QConfigAny, qconfig_equals
  from torch.ao.quantization.observer import _is_activation_post_process
  from torch.ao.quantization.backend_config import BackendConfig, DTypeConfig
  from torch.ao.quantization.backend_config.utils import get_module_to_qat_module
  from torch.fx import GraphModule
  from torch.fx.graph import Graph
  from torch.ao.nn.intrinsic import _FusedModule
  from ..utils import _parent_name, get_qconfig_dtypes
  from ..qconfig_mapping import _OBJECT_TYPE_DICT_KEY, _MODULE_NAME_DICT_KEY, _MODULE_NAME_REGEX_DICT_KEY, QConfigMapping
label_desc: Use image node_id 9 for calling a global function with example usage: _get_module_name_qconfig(qconfig_mapping, module_name, fallback_qconfig) and returns: fallback_qconfig, qconfig_mapping, _get_module_name_qconfig