code: def synthetic_dataset(tmpdir_factory):
      path = tmpdir_factory.mktemp("data").strpath
      url = "file://" + path
      data = create_test_dataset(url, range(ROWS_COUNT))
      return SyntheticDataset(url=url, path=path, data=data)
  
file_path: petastorm/petastorm/tests/test_generate_metadata.py
imports: import os
  from collections import namedtuple
  from shutil import copytree
  import pyarrow.parquet
  import pytest
  from petastorm import make_reader
  from petastorm.etl import petastorm_generate_metadata
  from petastorm.selectors import SingleIndexSelector
  from petastorm.tests.test_common import create_test_dataset, TestSchema
label_desc: Use image node_id 1 for calling a global function with example usage: synthetic_dataset(tmpdir_factory) and returns: SyntheticDataset