code: def makes_escaping_api_call(instr: parser.InstDef) -> bool:
      if "CALL_INTRINSIC" in instr.name:
          return True
      tkns = iter(instr.tokens)
      for tkn in tkns:
          if tkn.kind != lexer.IDENTIFIER:
              continue
          try:
              next_tkn = next(tkns)
          except StopIteration:
              return False
          if next_tkn.kind != lexer.LPAREN:
              continue
          if tkn.text in ESCAPING_FUNCTIONS:
              return True
          if not tkn.text.startswith("Py") and not tkn.text.startswith(
              "_Py"
          ):
              continue
          if tkn.text.endswith("Check"):
              continue
          if tkn.text.startswith("Py_Is"):
              continue
          if tkn.text.endswith("CheckExact"):
              continue
          if tkn.text in NON_ESCAPING_FUNCTIONS:
              continue
          return True
      return False
  
imports: from dataclasses import dataclass, field
  import lexer
  import parser
  from typing import Optional
label_desc: Use image node_id 8 for calling a global function with example usage: makes_escaping_api_call(instr) and returns: False, True, True, True, False