human
I wrote the below code

    def test_can_play(self, collection_id, **kwargs):
        collection_rights = rights_manager.get_collection_rights(collection_id, strict=False)
        if rights_manager.check_can_access_activity(self.user_id, self.actions, constants.ACTIVITY_TYPE_COLLECTION, collection_rights):
            return handler(self, collection_id, **kwargs)
        else:
            raise self.PageNotFoundException
    test_can_play.__wrapped__ = True
    return test_can_play

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

def can_play_collection(handler):