code: def create(cls, receiver_id, user_id=None):
          
          event = cls(id=uuid.uuid4(), receiver_id=receiver_id, user_id=user_id)
          event.payload = event.receiver.extract_payload()
          return event
docs: Create an event instance.