code: def get_binary_stream(name):
      
      opener = binary_streams.get(name)
      if opener is None:
          raise TypeError('Unknown standard stream %r' % name)
      return opener()
docs: Returns a system stream for byte processing.  This essentially
      returns the stream from the sys module with the given name but it
      solves some compatibility issues between different Python versions.
      Primarily this function is necessary for getting binary streams on
      Python 3.
  
      :param name: the name of the stream to open.  Valid names are ``'stdin'``,
                   ``'stdout'`` and ``'stderr'``