human
Here's a good function header given the following:
I wrote the below code

    def _dump_cert(cert):
        if isinstance(cert, jose.ComparableX509):
            cert = cert.wrapped
        return OpenSSL.crypto.dump_certificate(filetype, cert)
    return ''.join((_dump_cert(cert) for cert in chain))

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

def dump_pyopenssl_chain(chain, filetype=OpenSSL.crypto.FILETYPE_PEM):