code: def _check_is_valid_config_dict(
      config_dict: Any, allowed_keys: Set[str], dict_name: str
  ) -> None:
      r"""Checks if the given config_dict has the correct keys
  
      Args:
        `config_dict`: dictionary whose keys we want to check
      """
  
      for k in config_dict.keys():
          if k not in allowed_keys:
              raise ValueError(
                  "Expected "
                  + dict_name
                  + " to have the following keys: "
                  + str(allowed_keys)
                  + ". But found '"
                  + k
                  + "' instead."
              )
  
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 4 for calling a global function with example usage: _check_is_valid_config_dict(config_dict, allowed_keys, dict_name) without return types