code: def pkg_class_load(pkg_path, base_class, filter_str=""):
      modules = module_loader(pkg_path, filter_str)
      subclasses = {}
  
      for module in modules:
          for attr in dir(module):
              reference = getattr(module, attr)
              if type(reference).__name__ not in [
                  "classobj",
                  "ABCMeta",
              ]:
                  continue
              if (
                  issubclass(reference, base_class)
                  and reference != base_class
              ):
                  subclasses[attr] = reference
  
      return subclasses
  
imports: import json
  import os
  import pkgutil
  import importlib
  import tarfile
  from tempfile import NamedTemporaryFile
  import time
  import pandas
  import torch
  import glob
  from .None import device
  from .install import download_if_needed
label_desc: Use image node_id 3 for calling a global function with example usage: pkg_class_load(pkg_path, base_class, filter_str) and returns: subclasses