code: def test_write_temp_files():
      string = "foo_bar"
      temp_file = "./temp.py"
      write_temp_files(string, temp_file)
      assert os.path.isfile(temp_file)
      os.remove(temp_file)
  
file_path: hyperas/tests/test_utils.py
imports: import os
  from hyperopt import hp
  from hyperas.utils import extract_imports, remove_imports, remove_all_comments, temp_string, write_temp_files, with_line_numbers, determine_indent, unpack_hyperopt_vals, eval_hyperopt_space, find_signature_end
label_desc: Use image node_id 6 for calling a global function with example usage: test_write_temp_files() without return types