human
I wrote the below code

    d = Deferred()
    captured_data = []
    class Recorder(Protocol, ):
        def dataReceived(self, data):
            captured_data.append(data)
        def connectionLost(self, reason):
            if reason.check(ConnectionDone):
                d.callback(''.join(captured_data))
            else:
                d.errback(reason)
    return (d, Recorder())

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def make_capture_protocol():