code: def _maybe_adjust_qconfig_for_module_type_or_name(
      qconfig_mapping, module_type, module_name, global_qconfig
  ):
      # get qconfig for module_name,
      # fallback to module_name_regex_qconfig, module_type_qconfig,
      # global_qconfig if necessary
      module_type_qconfig = _get_object_type_qconfig(
          qconfig_mapping, module_type, global_qconfig
      )
      module_name_regex_qconfig = _get_module_name_regex_qconfig(
          qconfig_mapping, module_name, module_type_qconfig
      )
      module_name_qconfig = _get_module_name_qconfig(
          qconfig_mapping, module_name, module_name_regex_qconfig
      )
      return module_name_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 10 for calling a global function with example usage: _maybe_adjust_qconfig_for_module_type_or_name(qconfig_mapping, module_type, module_name, global_qconfig) and returns: module_name_qconfig