def reg_event_handler(self, event, handler):
        self.events[event] = [] if self.events not in event else self.events[
            event]
        self.events[event].append(handler)
dataset/ETHPy150Open SpockBotMC/SpockBot/tests/plugins/helpers/test_chat.py/PluginLoaderMock.reg_event_handler/swapped operands of `not in`