@requires_shapely
def test_cf_to_shapely(geometry_ds):
    (in_ds, exp) = geometry_ds
    xr.testing.assert_identical(cfxr.cf_to_shapely(in_ds).drop_vars(['crd_x', 'crd_y']), exp.geometry)
    in_ds = in_ds.isel(index=slice(1, None), node=slice(2, None)).drop_vars('node_count')
    del in_ds.geometry_container.attrs['node_count']
    out = cfxr.cf_to_shapely(in_ds)
    assert (out.dims == ('index',))
@requires_shapely
def test_cf_to_shapely(geometry_ds):
    (in_ds, exp) = geometry_ds
    xr.testing.assert_identical(cfxr.cf_to_shapely(in_ds).drop_vars(['crd_x', 'crd_y']), exp.geometry)
    in_ds = in_ds.isel(index=slice(1, None), node=slice(2, None)).drop_vars('node_count')
    del in_ds.geometry_container.attrs['node_count']
    out = cfxr.cf_to_shapely(in_ds)
    assert (out.dims == ('index',))