code: def unix2dos(file):
      "Replace LF with CRLF in argument files.  Print names of changed files."
      if os.path.isdir(file):
          print(file, "Directory!")
          return
  
      with open(file, "rb") as fp:
          data = fp.read()
      if "\0" in data:
          print(file, "Binary!")
          return
      newdata = re.sub("\r\n", "\n", data)
      newdata = re.sub("\n", "\r\n", newdata)
      if newdata != data:
          print("unix2dos:", file)
          with open(file, "wb") as f:
              f.write(newdata)
          return file
      else:
          print(file, "ok")
  
file_path: catboost/contrib/python/numpy/py3/numpy/distutils/line_endings.py
imports: import os
  import re
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: unix2dos(file) and returns: file