code: def setUpClass(cls):
      cls.setup_env(
          {
              "spark.master": "local[4]",
              "spark.python.worker.reuse": "false",
              "spark.driver.host": "127.0.0.1",
              "spark.task.maxFailures": "1",
              "spark.sql.execution.pyspark.udf.simplifiedTraceback.enabled": "false",
              "spark.sql.pyspark.jvmStacktrace.enabled": "true",
          }
      )
      cls.make_tempdir()
  
imports: import contextlib
  import logging
  import shutil
  import sys
  import tempfile
  import unittest
  from io import StringIO
  import pytest
  from xgboost import testing
  from pyspark.sql import SparkSession
  from xgboost.spark.utils import _get_default_params_from_func
label_desc: Use image node_id 1 for calling the SparkTestCase obj's underlying member method code with example usage: obj.setUpClass(cls) without return types