code: def test_get_temp_dir_from_tempfile():
      from skift.util import get_temp_dir_name, SKIFT_TEMP_DIR_ENV_VAR
      import os
      import shutil
  
      try:
          # Clear the Skift temp dir environment variable to prepare for the test
          env_var = os.environ[SKIFT_TEMP_DIR_ENV_VAR]
          del os.environ[SKIFT_TEMP_DIR_ENV_VAR]
      except KeyError:
          env_var = None
  
      tempdir = get_temp_dir_name()
      assert os.path.isdir(tempdir)
  
      if env_var:
          os.environ[SKIFT_TEMP_DIR_ENV_VAR] = env_var
  
      shutil.rmtree(tempdir)
  
imports: import pytest
  import pandas
  from sklearn.model_selection import cross_val_score
  from skift import FirstColFtClassifier, IdxBasedFtClassifier, ColLblBasedFtClassifier, FirstObjFtClassifier, SeriesFtClassifier
label_desc: Use image node_id 20 for calling a global function with example usage: test_get_temp_dir_from_tempfile() without return types