code: def _get_class_from_path(domain, subdomains, imp):
      path = _build_import_path(domain, subdomains, imp)
  
      class_ = None
      result = None
  
      try:
          class_ = model_utils.import_class_by_path(path)
  
          if inspect.isclass(class_):
              # Is class wrpped in a wrapt.decorator a the class level? Unwrap for checks.
              if isinstance(class_, wrapt.FunctionWrapper):
                  class_ = class_.__wrapped__
  
              # Subclass tests
              if issubclass(class_, (Model, torch.nn.Module)):
                  result = class_
          else:
              class_ = None
  
          error = None
  
      except Exception:
          error = traceback.format_exc()
  
      return class_, result, error
  
file_path: NeMo/tests/core_ptl/check_imports.py
imports: import argparse
  import importlib
  import inspect
  import os
  import traceback
  import torch
  import wrapt
  from nemo.core import Model
  from nemo.utils import model_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _get_class_from_path(domain, subdomains, imp) and returns: class_,  result,  error