code: def load_dataconfig(task, dataset):
      data_conf = os.path.join(
          ROOT, "..", "conf/data/{}/{}.yaml".format(task, dataset)
      )
      config = OmegaConf.load(data_conf)
      if omegaconf.__version__ == "1.4.1":
          config.update("data.task", "segmentation")
          config.update("data.dataroot", "data")
      else:
          OmegaConf.update(
              config, "data.task", "segmentation", merge=True
          )
          OmegaConf.update(config, "data.dataroot", "data", merge=True)
  
      return config
  
file_path: torch-points3d/test/test_dataset_factory.py
imports: import os
  import sys
  import unittest
  import numpy
  import omegaconf
  from omegaconf import OmegaConf
  import torch
  from torch_geometric.data import Data
  from torch_points3d.datasets.segmentation.shapenet import ShapeNetDataset
  from torch_points3d.datasets.dataset_factory import get_dataset_class
label_desc: Use image node_id 1 for calling a global function with example usage: load_dataconfig(task, dataset) and returns: config