def METHOD_NAME(
    _response: lib.Deserializable[Element],
    settings: Settings,
) -> Tuple[PickupDetails, List[Message]]:
    response = _response.deserialize()
    reply = XP.find(
        "SchedulePickUpResponse", response, SchedulePickUpResponse, first=True
    )
    pickup = (
        _extract_pickup_details(reply, settings)
        if reply is not None and reply.PickUpConfirmationNumber is not None
        else None
    )
    return pickup, parse_error_response(response, settings)