code: def _test_dir(test_name):
      test_dir = os.path.join(test.get_temp_dir(), test_name)
      if os.path.exists(test_dir):
          shutil.rmtree(test_dir)
      return test_dir
  
file_path: tensorflow-upstream/tensorflow/python/training/basic_loops_test.py
imports: import os
  import shutil
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import test
  from tensorflow.python.training import basic_loops
  from tensorflow.python.training import supervisor
label_desc: Use image node_id 1 for calling a global function with example usage: _test_dir(test_name) and returns: test_dir