code: def produce_events(events, queue_url, batch_size=10, randomize_delay=0):
      
      client = boto3.client('sqs', region_name=CURRENT_REGION)
  
      for chunk in chunks(events, batch_size):
          records = [make_sqs_record(event, delay_seconds=get_random_delay(randomize_delay)) for event in chunk]
  
          client.send_message_batch(Entries=records, QueueUrl=queue_url)
docs: Efficiently sends events to the SQS event queue.
  
      Note: SQS has a max size of 10 items.  Please be aware that this can make the messages go past size -- even
      with shrinking messages!
  
      Events can get randomized delays, maximum of 900 seconds. Set that in `randomize_delay`
      :param events:
      :param queue_url:
      :param batch_size:
      :param randomize_delay: