docstr: Initializes dataset once per test. All tests in this class will use the same fake dataset.
docstr_tok: ["Initializes","dataset","once","per","test",".","All","tests","in","this","class","will","use","the","same","fake","dataset","."]
code: def setUpClass(cls):
      """Initializes dataset once per test. All tests in this class will use the same fake dataset."""
      # Write a fake dataset to this location
      cls._dataset_dir = mkdtemp("end_to_end_petastorm")
      cls._dataset_url = "file://{}".format(cls._dataset_dir)
      ROWS_COUNT = 1000
      cls._dataset_dicts = create_test_dataset(
          cls._dataset_url, range(ROWS_COUNT)
      )
  
      # Remove crc files due to https://issues.apache.org/jira/browse/HADOOP-7199
      for crc_file in glob.glob(cls._dataset_dir + "/.*.crc"):
          os.remove(crc_file)
  
file_path: petastorm/petastorm/tests/test_spark_utils.py
imports: import glob
  import os
  import unittest
  from shutil import rmtree
  from tempfile import mkdtemp
  import numpy
  from pyspark.sql import SparkSession
  from petastorm.spark_utils import dataset_as_rdd
  from petastorm.tests.test_common import create_test_dataset, TestSchema
label_desc: Use image node_id 1 for calling the TestSparkUtils obj's underlying member method code with example usage: obj.setUpClass(cls) without return types