code: def config_class_to_model_type(config):
      """Converts a config class name to the corresponding model type"""
      for key, cls in CONFIG_MAPPING_NAMES.items():
          if cls == config:
              return key
      return None
  
imports: import importlib
  import re
  from collections import OrderedDict
  from typing import List, Union
  from fastNLP.transformers.torch.configuration_utils import PretrainedConfig
  from fastNLP.transformers.torch.file_utils import CONFIG_NAME
  from fastNLP.core.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: config_class_to_model_type(config) and returns: None, key