code: def get_binary_stream(name):
      """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'``
      """
      opener = binary_streams.get(name)
      if opener is None:
          raise TypeError("Unknown standard stream '{}'".format(name))
      return opener()
  
imports: import os
  import sys
  from ._compat import _default_text_stderr
  from ._compat import _default_text_stdout
  from ._compat import auto_wrap_for_ansi
  from ._compat import binary_streams
  from ._compat import filename_to_ui
  from ._compat import get_filesystem_encoding
  from ._compat import get_streerror
  from ._compat import is_bytes
  from ._compat import open_stream
  from ._compat import PY2
  from ._compat import should_strip_ansi
  from ._compat import string_types
  from ._compat import strip_ansi
  from ._compat import text_streams
  from ._compat import text_type
  from ._compat import WIN
  from .globals import resolve_color_default
label_desc: Use image node_id 6 for calling a global function with example usage: get_binary_stream(name) and returns: opener