in annotation/annotation/tasks/services.py [0:0]
def remove_ids(task_obj: Dict[str, Any]) -> Dict[str, Any]:
"""Remove ids from task objects, objects links and children."""
task_obj_without_ids = {
key: value for key, value in task_obj.items() if key != "id"
}
if task_obj_without_ids.get("links") is not None:
task_obj_without_ids.pop("links")
if task_obj_without_ids.get("children") is not None:
task_obj_without_ids.pop("children")
return task_obj_without_ids