code: def test_executable(path):
      if not os.path.isdir(path):
          if os.access(path, os.X_OK):
              with open(path, "r") as f:
                  if f.readline()[:2] != "#!":
                      exn_msg = (
                          "File at "
                          + path
                          + " either should not be executable or should have a shebang line"
                      )
                      raise OSError(exn_msg)
      else:
          for file in os.listdir(path):
              if file in (".git", "venv_main"):
                  continue
              test_executable(os.path.join(path, file))
  
imports: from __future__ import print_function
  import os
  from get_sympy import path_hack
label_desc: Use image node_id 1 for calling a global function with example usage: test_executable(path) without return types