def METHOD_NAME(self, sg_task):
    entity_id = self.get_entity_id(sg_task["entity"])
    task_status_id = self.task_status_ids.get(
        sg_task["sg_status_list"], None
    )
    step_shotgun_id = sg_task["step"]["id"]
    assigner_id = self.person_ids.get(sg_task["created_by"]["id"], None)
    project_id = self.project_ids.get(sg_task["project"]["id"], None)
    task_type_id = self.task_type_ids.get(step_shotgun_id, None)
    assignees = self.extract_assignees(sg_task, self.person_ids)
    return {
        "name": sg_task["cached_display_name"],
        "shotgun_id": sg_task["id"],
        "start_date": sg_task["start_date"],
        "due_date": sg_task["due_date"],
        "sort_order": sg_task["sg_sort_order"],
        "duration": sg_task["duration"],
        "task_type_id": task_type_id,
        "task_status_id": task_status_id,
        "project_id": project_id,
        "entity_id": entity_id,
        "assigner_id": assigner_id,
        "assignees": assignees,
    }