code: def setUpClass(cls):
      ReusedPySparkTestCase.setUpClass()
      cls.tempdir = tempfile.NamedTemporaryFile(delete=False)
      os.unlink(cls.tempdir.name)
      cls.sc._jvm.WriteInputFormatTestDataGenerator.generateData(
          cls.tempdir.name, cls.sc._jsc
      )
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from pyspark.testing.utils import ReusedPySparkTestCase, SPARK_HOME
label_desc: Use image node_id 1 for calling the InputFormatTests obj's underlying member method code with example usage: obj.setUpClass(cls) without return types