code: def stubgen(header_filepath, out_file=sys.stdout):
      header_text = ""
      with open(header_filepath, "r") as file:
          header_text = file.read()
  
      print(COPYRIGHT_NOTICE, file=out_file)
      print('#include "{}"\n\n'.format(header_filepath), file=out_file)
  
      FUNCTION_DECL_PATTERN = (
          r"DLL_PUBLIC[\s]+(.*)[\s]+(.*)\(([^\)]*?)\);"
      )
      for entry in re.finditer(FUNCTION_DECL_PATTERN, header_text):
          ret_type = entry.group(1)
          func_name = entry.group(2)
          args = entry.group(3)
          print(
              "{} {}({}) {{\n}}\n\n".format(ret_type, func_name, args),
              file=out_file,
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: stubgen(header_filepath, out_file) without return types