def METHOD_NAME(ds: Dataset) -> Dataset:
    out = Dataset()
    for key, da in ds.items():
        if da.ndim == 1:
            out[key] = DataArray(
                data=da.data,
                coords={
                    key: var
                    for key, var in da.coords.items()
                    if var.dims == da.data.dims
                },
                attrs={
                    key: var
                    for key, var in da.attrs.items()
                    if var.dims == da.data.dims
                },
                masks={
                    key: var.broadcast(sizes=da.sizes) for key, var in da.masks.items()
                },
            )
    return out