code: def _removeLineEndCharacters(line):
      if line.endswith(b"\r\n"):
          return line[:-2]
      elif line.endswith(b"\n"):
          return line[:-1]
      else:
          return line
  
file_path: CNTK/Examples/Image/Detection/utils/annotations/annotations_helper.py
imports: import numpy
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: _removeLineEndCharacters(line) and returns: line, line, line