code: def dos2unix(file):
      "Replace CRLF with LF in argument files.  Print names of changed files."
      if os.path.isdir(file):
          print(file, "Directory!")
          return
  
      data = open(file, "rb").read()
      if "\0" in data:
          print(file, "Binary!")
          return
  
      newdata = re.sub("\r\n", "\n", data)
      if newdata != data:
          print("dos2unix:", file)
          f = open(file, "wb")
          f.write(newdata)
          f.close()
          return file
      else:
          print(file, "ok")
  
imports: from __future__ import division, absolute_import, print_function
  import sys, re, os
label_desc: Use image node_id 1 for calling a global function with example usage: dos2unix(file) and returns: file