code: def clear_events(self, event_name):
          
          self.lock.acquire()
          try:
              q = self.get_event_q(event_name)
              q.queue.clear()
          except queue.Empty:
              return
          finally:
              self.lock.release()
docs: Clear all events of a particular name.
  
          Args:
              event_name: Name of the events to be popped.