code: def check_eol(filename):
      eol = "\n"
      with open(filename, "rb") as f:
          d = f.read()
          if b"\r\n" in d:
              eol = "\r\n"
          elif b"\n" in d:
              eol = "\n"
          elif b"\r" in d:
              eol = "\r"
      return eol
  
imports: import os
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: check_eol(filename) and returns: eol