def METHOD_NAME(diags: Sequence[Tuple[str, xr.DataArray]]) -> xr.Dataset:
    out = xr.Dataset()
    for name, da in diags:
        if len(da.dims) != 0:
            # don't add empty DataArrays, which are returned in case of missing inputs
            out[name] = da
    return out