human
I wrote the below code

    def test_can_flag(self, exploration_id, **kwargs):
        if (role_services.ACTION_FLAG_EXPLORATION in self.actions):
            return handler(self, exploration_id, **kwargs)
        else:
            raise base.UserFacingExceptions.UnauthorizedUserException('You    do    not    have    credentials    to    flag    explorations.')
    test_can_flag.__wrapped__ = True
    return test_can_flag

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

def can_flag_exploration(handler):