code: def get_dataset(**kwargs):
      path = os.path.dirname(__file__)
      input_folder = os.path.join(path, "static")
      labels_path = os.path.join(path, "static/labels.csv")
  
      xml_to_csv(input_folder, labels_path)
      dataset = Dataset(labels_path, input_folder, **kwargs)
      os.remove(labels_path)
  
      return dataset
  
file_path: detecto/detecto/tests/helpers.py
imports: import os
  import torch
  from detecto.core import Model, Dataset
  from detecto.utils import xml_to_csv, read_image
label_desc: Use image node_id 1 for calling a global function with example usage: get_dataset() and returns: dataset