code: def test_remove_imports_in_function():
      result = remove_imports(TEST_SOURCE_3)
      # test function should have 3 lines (including the comment)
      assert len(result.split("\n")[1:-1]) == 3
      assert "def foo():" in result
      assert "# a comment in a function" in result
      assert "bar()" in result
  
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 3 for calling a global function with example usage: test_remove_imports_in_function() without return types