code: def get_class_in_module(class_name, module_path):
      """
      Import a module on the cache directory for modules and extract a class from it.
      """
      module_path = module_path.replace(os.path.sep, ".")
      module = importlib.import_module(module_path)
      return getattr(module, class_name)
  
file_path: fastNLP/fastNLP/transformers/torch/models/auto/dynamic.py
imports: import importlib
  import os
  import re
  import shutil
  import sys
  from pathlib import Path
  from typing import Dict, Optional, Union
  from fastNLP.transformers.torch.file_utils import HF_MODULES_CACHE, TRANSFORMERS_DYNAMIC_MODULE_NAME, cached_path, hf_bucket_url, is_offline_mode
  from fastNLP.core.log import logger
label_desc: Use image node_id 4 for calling a global function with example usage: get_class_in_module(class_name, module_path) and returns: getattr