code: def test_set_dir():
      """[Base] Test setting temp dir."""
      before = config.get_tmpdir()
  
      config.set_tmpdir(os.getcwd())
  
      after = config.get_tmpdir()
  
      assert before != after
  
imports: import os
  import subprocess
  import numpy
  from mlens import config
  from mlens.utils import IdTrain
  from mlens.index import FoldIndex, BlendIndex, SubsetIndex, TemporalIndex, ClusteredSubsetIndex, FullIndex
  from mlens.index.base import partition, prune_train
label_desc: Use image node_id 1 for calling a global function with example usage: test_set_dir() without return types