def has_dims(xobj, dims, kind):
    """
    Checks that at the minimum, the object has provided dimensions.

    Args:
        xobj (xarray object): Dataset or DataArray to check dimensions on.
        dims (list or str): Dimensions being checked.
        kind (str): String to precede "object" in the error message.
    """
    if isinstance(dims, str):
        dims = [dims]

    if not all(dim in xobj.dims for dim in dims):
        raise ValueError(
            f"Your {kind} object must contain the "
            f"following dimensions at the minimum: {dims}"
        )
    return True