code: def wrap(self, encoding, **textio_args):
          
          # By default we want write_through behavior, unless the user specifies
          # something else.
          if 'line_buffering' not in textio_args and 'write_through' not in textio_args:
              textio_args['write_through'] = True
          return compat.TextIOWrapper(self, encoding, **textio_args)
docs: Return a :class:`io.TextIOWrapper` that wraps the stream.
  
          The wrapper provides text IO on top of the byte stream, using the
          specified *encoding*. The *textio_args* keyword arguments are
          additional keyword arguments passed to the :class:`~io.TextIOWrapper`
          constructor. Unless another buffering scheme is specified, the
          *write_through* option is enabled.