code: def import_class_by_path(path: str):
      """
      Recursive import of class by path string.
      """
      paths = path.split(".")
      path = ".".join(paths[:-1])
      class_name = paths[-1]
      mod = __import__(path, fromlist=[class_name])
      mod = getattr(mod, class_name)
      return mod
  
imports: import copy
  import importlib
  import os
  from dataclasses import dataclass, is_dataclass
  from enum import Enum
  from functools import lru_cache
  from pathlib import Path
  from typing import List, Optional, Tuple, Union
  import wrapt
  from nemo.utils import AppState, logging
  from nemo.utils.data_utils import resolve_cache_dir
  from nemo.utils.data_utils import is_datastore_path
label_desc: Use image node_id 10 for calling a global function with example usage: import_class_by_path(path) and returns: mod