code: def import_class_by_path(class_path: str) -> Type[Any]:
      """Import a class by its <module>.<name> path.
  
      Args:
        class_path: <module>.<name> for a class.
  
      Returns:
        Class object for the given class_path.
      """
      classname = class_path.split(".")[-1]
      modulename = ".".join(class_path.split(".")[0:-1])
      try:
          mod = importlib.import_module(modulename)
          return getattr(mod, classname)
      except Exception as e:
          raise ImportError(f"Could not import {class_path}") from e
  
file_path: tfx/tfx/utils/import_utils.py
imports: import importlib
  import importlib.abc
  import sys
  import threading
  from typing import Any, Callable, Type
  from absl import logging
  from tfx.utils import io_utils
label_desc: Use image node_id 1 for calling a global function with example usage: import_class_by_path(class_path) and returns: getattr