def METHOD_NAME(
    dataset: DataSetProtocol, datadict: Mapping[str, Mapping[str, np.ndarray]]
) -> dict[str, xr.DataArray]:
    import xarray as xr
    data_xrdarray_dict: dict[str, xr.DataArray] = {}
    for name, subdict in datadict.items():
        index = _generate_pandas_index(subdict)
        if index is not None and len(index.unique()) != len(index):
            for _name in subdict:
                data_xrdarray_dict[_name] = _data_to_dataframe(
                    subdict, index).reset_index().to_xarray()[_name]
        else:
            xrdarray: xr.DataArray = (
                _data_to_dataframe(subdict, index).to_xarray().get(name, xr.DataArray())
            )
            data_xrdarray_dict[name] = xrdarray
    return data_xrdarray_dict