code: def writelines(self, lines):
      warn(
          "IOStream is deprecated since IPython 5.0, use sys.{stdin,stdout,stderr} instead",
          DeprecationWarning,
          stacklevel=2,
      )
      if isinstance(lines, string_types):
          lines = [lines]
      for line in lines:
          self.write(line)
  
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 4 for calling the IOStream obj's underlying member method code with example usage: obj.writelines(lines) without return types