code: def _get_default_qconfig_mapping_with_default_qconfig(
      is_qat: bool,
      backend: str,
      default_qconfig: QConfig,
  ) -> QConfigMapping:
      """
      Return a QConfigMapping that uses the provided qconfig as the default QConfig.
      """
      if is_qat:
          qconfig_mapping = get_default_qat_qconfig_mapping(backend)
      else:
          qconfig_mapping = get_default_qconfig_mapping(backend)
      qconfig_mapping.set_global(default_qconfig)
      for pattern in qconfig_mapping.object_type_qconfigs.keys():
          if pattern not in _FIXED_QPARAMS_OP_TO_OBSERVER:
              qconfig_mapping.set_object_type(pattern, default_qconfig)
      return qconfig_mapping
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from typing import Any, Callable, Dict, Tuple, Union, List
  import torch
  from .fake_quantize import default_weight_fake_quant, FixedQParamsFakeQuantize
  from .observer import _PartialWrapper, default_fixed_qparams_range_0to1_observer, default_fixed_qparams_range_neg1to1_observer, default_placeholder_observer, default_weight_observer
  from .qconfig import default_reuse_input_qconfig, default_symmetric_qnnpack_qconfig, default_symmetric_qnnpack_qat_qconfig, get_default_qconfig, get_default_qat_qconfig, QConfig, QConfigAny, default_quint8_weight_qconfig
label_desc: Use image node_id 6 for calling a global function with example usage: _get_default_qconfig_mapping_with_default_qconfig(is_qat, backend, default_qconfig) and returns: qconfig_mapping