def get_by_key(self, notification_key):
        for obj in self.state[self.state_name]:
            if obj['notification_key'] == notification_key:
                return obj
        return None
choices must be passed in in desired sort order
dataset/ETHPy150Open Doist/todoist-python/todoist/managers/live_notifications.py/LiveNotificationsManager.get_by_key--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/tests/test_choice_provider.py/StaticChoiceProvider.__init__