def METHOD_NAME(shipment_response: str, settings: provider_utils.Settings) -> lib.Job:
    response = lib.to_element(shipment_response)
    shipment = lib.to_object(
        Shipment,
        next(iter(response.xpath(".//*[local-name() = $name]", name="shipment")), None),
    )
    success = shipment is not None and shipment.id is not None
    data = (
        label.get_label_request(label.LabelRequest(shipment_id=shipment.id), settings)
        if success
        else None
    )
    return lib.Job(id="get_label", data=data, fallback=("" if not success else None))