code: def _normalize_line_endings(source):
      source = source.replace(b"\r\n", b"\n")
      source = source.replace(b"\r", b"\n")
      return source
  
imports: import _warnings
  import os.path
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_line_endings(source) and returns: source