code: def dynamic_import(import_path: str, alias: dict = None):
      """
      Dynamically import a member from the specified module.
  
      :param import_path: syntax 'module_name:member_name', e.g. 'merlion.transform.normalize:BoxCoxTransform'
      :param alias: dict which maps shortcuts for the registered classes, to their full import paths.
      :return: imported class
      """
      alias = dict() if alias is None else alias
      if import_path not in alias and ":" not in import_path:
          raise ValueError(
              "import_path should be one of {} or "
              'include ":", e.g. "merlion.transform.normalize:MeanVarNormalize" : '
              "got {}".format(set(alias), import_path)
          )
      if ":" not in import_path:
          import_path = alias[import_path]
  
      module_name, objname = import_path.split(":")
      m = importlib.import_module(module_name)
      return getattr(m, objname)
  
imports: from abc import ABCMeta
  from collections import OrderedDict
  from copy import deepcopy
  from functools import wraps
  import importlib
  import inspect
  import re
  from typing import Callable, Union
label_desc: Use image node_id 3 for calling a global function with example usage: dynamic_import(import_path, alias) and returns: getattr