code: def run(file, out):
      try:
          html = ""
          try:
              with open(file) as fp:
                  html += "<pre>" + ansi2html(fp.read()) + "</pre>"
          except IOError:
              print(
                  "File not found: %r" % "pylint.txt", file=sys.stderr
              )
  
          with open(out, "w") as out_fp:
              out_fp.write(html)
      except KeyboardInterrupt:
          pass
  
imports: from __future__ import print_function
  import re
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: run(file, out) without return types