human
I wrote the below code

    def checkpassword(realm, user, password):
        p = user_password_dict.get(user)
        return ((p and (p == password)) or False)
    return checkpassword

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

def checkpassword_dict(user_password_dict):