human
I wrote the below code

    def test_can_access(self, **kwargs):
        if (role_services.ACTION_ACCESS_LEARNER_DASHBOARD in self.actions):
            return handler(self, **kwargs)
        else:
            raise self.NotLoggedInException
    test_can_access.__wrapped__ = True
    return test_can_access

What's a good function header?

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

def can_access_learner_dashboard(handler):