def METHOD_NAME(synthetic):
    grid = synthetic.grid
    parcels = synthetic._parcels
    with pytest.raises(ValueError):
        plot_network_and_parcels(
            grid, parcels, parcel_color_attribute="D", parcel_color="r"
        )