def METHOD_NAME(obj: VariableLike) -> Union[xr.Variable, xr.DataArray, xr.Dataset]:
    """Convert a scipp object to the corresponding xarray object.
    Warning
    -------
    Any masks and variances in the input will be stripped during the conversion.
    Binned data is not supported.
    Parameters
    ----------
    obj:
        The scipp object to convert.
    Returns
    -------
    :
        The converted xarray object.
    See Also
    --------
    scipp.compat.from_xarray
    """
    if isinstance(obj, Variable):
        return _to_xarray_variable(obj)
    elif isinstance(obj, DataArray):
        return _to_xarray_dataarray(obj)
    elif isinstance(obj, Dataset):
        return _to_xarray_dataset(obj)
    else:
        raise ValueError(f"to_xarray: cannot convert type '{type(obj)}'")