code: def process_events(args):
      
      client = EventsClient.from_config()
      client.set_debug(True)
      if args.get:
          response = client.get_events()
      elif args.flush:
          response = client.flush_events()
      return response
docs: Process actions related to events switch.