docstr: :param dir: Root directory in which to create the temp directory
docstr_tok: [":","param","dir",":","Root","directory","in","which","to","create","the","temp","directory"]
code: def make_tempdir(cls):
      """
      :param dir: Root directory in which to create the temp directory
      """
      cls.tempdir = tempfile.mkdtemp(prefix="sparkdl_tests")
  
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 TestTempDir obj's underlying member method code with example usage: obj.make_tempdir(cls) without return types