code: def output_def(dlist, flist, header, file=sys.stdout):
      """Outputs the final DEF file to a file defaulting to stdout.
  
      output_def(dlist, flist, header, file = sys.stdout)"""
      for data_sym in dlist:
          header = header + "\t%s DATA\n" % data_sym
      header = header + "\n"  # blank line
      for func_sym in flist:
          header = header + "\t%s\n" % func_sym
      file.write(header)
  
imports: import re
  import sys
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: output_def(dlist, flist, header, file) without return types