code: def _decode_line(line, encoding=None):
      """Decode bytes from binary input streams.
  
      Defaults to decoding from 'latin1'. That differs from the behavior of
      np.compat.asunicode that decodes from 'ascii'.
  
      Parameters
      ----------
      line : str or bytes
           Line to be decoded.
  
      Returns
      -------
      decoded_line : unicode
           Unicode in Python 2, a str (unicode) in Python 3.
  
      """
      if type(line) is bytes:
          if encoding is None:
              line = line.decode("latin1")
          else:
              line = line.decode(encoding)
  
      return line
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import numpy
  import numpy.core.numeric
  from numpy.compat import asbytes, asunicode, bytes, basestring
label_desc: Use image node_id 1 for calling a global function with example usage: _decode_line(line, encoding) and returns: line