code: def test_f2py_init_compile_bad_cmd():
      # verify that usage of invalid command in f2py.compile() returns
      # status value of 127 for historic consistency with exec_command()
      # error handling
  
      # patch the sys Python exe path temporarily to induce an OSError
      # downstream NOTE: how bad of an idea is this patching?
      try:
          temp = sys.executable
          sys.executable = "does not exist"
  
          # the OSError should take precedence over invalid Fortran
          ret_val = numpy.f2py.compile(b"invalid")
          assert ret_val == 127
      finally:
          sys.executable = temp
  
file_path: catboost/contrib/python/numpy/py3/numpy/f2py/tests/test_compile_function.py
imports: import sys
  import os
  import uuid
  from importlib import import_module
  import pytest
  import numpy.f2py
  from .None import util
label_desc: Use image node_id 4 for calling a global function with example usage: test_f2py_init_compile_bad_cmd() without return types