code: def test_temp_dir():
      with tmp.temp_dir() as t_dir:
          assert os.path.isdir(t_dir)
      assert not os.path.exists(t_dir)
  
imports: import os
  import library.python.tmp
label_desc: Use image node_id 2 for calling a global function with example usage: test_temp_dir() without return types