def METHOD_NAME(dep):
    date = dep.get("DA")
    time = dep.get("TI")
    # cannot use DateTime because the data needs to be json serializable
    departure_datetime_utc = make_datetime_json_serializable(date, time)
    value = {
        "departureDatetimeUtc": departure_datetime_utc,
        "departurePort": dep.get("PO"),
        "anticipatedActivity": dep.get("AA"),
    }
    children = tagged_children(dep)
    if "GEA" in children:
        gear = [parse_gea(gea) for gea in children["GEA"]]
        value["gearOnboard"] = gear
    if "SPE" in children:
        species_onboard = [parse_spe(spe) for spe in children["SPE"]]
        value["speciesOnboard"] = species_onboard
    data = {"log_type": "DEP", "value": value}
    return data