code: def get_dataset_class(dataset_config):
      task = dataset_config.task
      # Find and create associated dataset
      try:
          dataset_config.dataroot = hydra.utils.to_absolute_path(
              dataset_config.dataroot
          )
      except Exception:
          log.error("This should happen only during testing")
      dataset_class = getattr(dataset_config, "class")
      dataset_paths = dataset_class.split(".")
      module = ".".join(dataset_paths[:-1])
      class_name = dataset_paths[-1]
      dataset_module = ".".join(
          ["torch_points3d.datasets", task, module]
      )
      datasetlib = importlib.import_module(dataset_module)
  
      target_dataset_name = class_name
      for name, cls in datasetlib.__dict__.items():
          if name.lower() == target_dataset_name.lower() and issubclass(
              cls, BaseDataset
          ):
              dataset_cls = cls
  
      if dataset_cls is None:
          raise NotImplementedError(
              "In %s.py, there should be a subclass of BaseDataset with class name that matches %s in lowercase."
              % (module, class_name)
          )
      return dataset_cls
  
imports: import importlib
  import copy
  import hydra
  import logging
  from torch_points3d.datasets.base_dataset import BaseDataset
label_desc: Use image node_id 1 for calling a global function with example usage: get_dataset_class(dataset_config) and returns: dataset_cls