human
I wrote the below code

    def test_can_modify(self, exploration_id, **kwargs):
        exploration_rights = rights_manager.get_exploration_rights(exploration_id, strict=False)
        if rights_manager.check_can_modify_exploration_roles(self.user_id, self.actions, exploration_rights):
            return handler(self, exploration_id, **kwargs)
        else:
            raise base.UserFacingExceptions.UnauthorizedUserException('You    do    not    have    credentials    to    change    rights    for    this    exploration.')
    test_can_modify.__wrapped__ = True
    return test_can_modify

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

def can_modify_exploration_roles(handler):