code: def test_extract_imports():
      result = extract_imports(TEST_SOURCE)
      assert "java.lang" not in result
      assert "nocomment" not in result
      assert "_pydev_" not in result
      assert "try:\n    import os\nexcept:\n    pass\n" in result
      assert "from sys import path" in result
      assert "from os import walk as walk2" in result
      assert "ignore" not in result
      assert "remove me" not in result
      assert "from __future__ import print_function" in result
      assert "from os.path import splitext as split" in result
      assert "import os.path.splitext as sp" 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 1 for calling a global function with example usage: test_extract_imports() without return types