code: def generate_dataset_for_legacy_test():
      """Generates a test dataset and stores it into petastorm/tests/data/legacy/x.x.x folder. The version number
      is acquired automatically from petastorm.__version__"""
      dataset_name = petastorm.__version__
      path = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "data",
          "legacy",
          dataset_name,
      )
      url = "file://" + path
  
      create_test_dataset(url, range(100))
  
label_desc: Use image node_id 1 for calling a global function with example usage: generate_dataset_for_legacy_test() without return types