code: def find_prototypes(code):
      """
      Return a list of signatures for each function prototype declared in *code*.
      Format is [(name, [args], rtype), ...].
      """
      prots = []
      lines = code.split("\n")
      for line in lines:
          m = re.match(r"\s*" + re_func_prot, line)
          if m is not None:
              rtype, name, args = m.groups()[:3]
              if args == "void" or args.strip() == "":
                  args = []
              else:
                  args = [
                      tuple(arg.strip().split(" "))
                      for arg in args.split(",")
                  ]
              prots.append((name, args, rtype))
  
      return prots
  
imports: from __future__ import division
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: find_prototypes(code) and returns: prots