code: def publish(self, object_id: str, event_type: str,
                  event_data: dict = None):
          
          object_key = SchedulingObject.get_key(self.type, object_id)
          publish(event_type=event_type,
                  event_data=event_data,
                  object_type=self.type,
                  object_id=object_id,
                  object_key=object_key,
                  origin=None)
docs: Publish a scheduling object event.
  
          Args:
              object_id (str): ID of the scheduling object
              event_type (str): Type of event.
              event_data (dict, optional): Event data.