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

    import ldap
    original_initialize = ldap.initialize
    def initialize(uri):
        return patch_ldap_connection(results)
    ldap.initialize = initialize
    (yield)
    ldap.initialize = original_initialize

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

@contextmanager
def patch_ldap(self, results):