human
I wrote the below code

    def get_ha1(realm, username):
        password = user_password_dict.get(username)
        if password:
            return md5_hex(('%s:%s:%s' % (username, realm, password)))
        return None
    return get_ha1

What's a good function header?

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

def get_ha1_dict_plain(user_password_dict):