def METHOD_NAME(self, transport):
    self._transport = transport
    stdout_transport = transport.get_pipe_transport(1)
    if stdout_transport is not None:
        self.stdout = streams.StreamReader(limit=self._limit,
                                           loop=self._loop)
        self.stdout.set_transport(stdout_transport)
        self._pipe_fds.append(1)
    stderr_transport = transport.get_pipe_transport(2)
    if stderr_transport is not None:
        self.stderr = streams.StreamReader(limit=self._limit,
                                           loop=self._loop)
        self.stderr.set_transport(stderr_transport)
        self._pipe_fds.append(2)
    stdin_transport = transport.get_pipe_transport(0)
    if stdin_transport is not None:
        self.stdin = streams.StreamWriter(stdin_transport,
                                          protocol=self,
                                          reader=None,
                                          loop=self._loop)