code: def unicode_std_stream(stream="stdout"):
      """DEPRECATED, moved to nbconvert.utils.io"""
      warn(
          "IPython.utils.io.unicode_std_stream has moved to nbconvert.utils.io"
      )
      from nbconvert.utils.io import unicode_std_stream
  
      return unicode_std_stream(stream)
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  import atexit
  import os
  import sys
  import tempfile
  import warnings
  from warnings import warn
  from IPython.utils.decorators import undoc
  from .capture import CapturedIO, capture_output
  from .py3compat import string_types, input, PY3
label_desc: Use image node_id 6 for calling a global function with example usage: unicode_std_stream(stream) and returns: unicode_std_stream