<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def publish(self, object_id: str, event_type: str, event_data: dict = None):
 """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. """

        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)