def main():
  process_state_events = ['PROCESS_STATE_STOPPED', 'PROCESS_STATE_BACKOFF',
    'PROCESS_STATE_EXITED', 'PROCESS_STATE_FATAL']
  while True:
    headers, payload = childutils.listener.wait()

    if process_state_events in headers['eventname']:
      handle_event(payload)

    childutils.listener.ok()
dataset/ETHPy150Open XiaoMi/minos/supervisor/superlance/process_exit_monitor.py/main/swapped operands of `in`