human
I wrote the below code

    def test_can_view_stats(self, exploration_id, **kwargs):
        if (exploration_id in feconf.DISABLED_EXPLORATION_IDS):
            raise base.UserFacingExceptions.PageNotFoundException
        exploration_rights = rights_manager.get_exploration_rights(exploration_id, strict=False)
        if rights_manager.check_can_access_activity(self.user_id, self.actions, constants.ACTIVITY_TYPE_EXPLORATION, exploration_rights):
            return handler(self, exploration_id, **kwargs)
        else:
            raise base.UserFacingExceptions.PageNotFoundException
    test_can_view_stats.__wrapped__ = True
    return test_can_view_stats

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

def can_view_exploration_stats(handler):