def api_get_events(self, args):
        """
            Get the status of all the events already executed by atropos
            An event is a tuple containing the elements
            (service name, event name, trigger_time,
             target of the event, Event status)
            Here event name is the failure name if it was a failure event
            for revert events it is failure name + '-revert'

            Args:
                args - expects a dictionary containing a key for service_name
            Returns:
                event list encoded as a json string
            Raise:
                None
        """
        self.update_event_map()
        service_name = args['service_name']
        if self.event_map.keys() not in service_name:
            return json.dumps([()])
        return json.dumps(self.event_map[service_name])
dataset/ETHPy150Open linkedin/simoorg/src/test/mock_modules/MockMoirai.py/MockMoirai.api_get_events/swapped operands of `not in`