def _func_arrs_to_ds(func, args=None, kwargs=None):
    """Create new function that calls the original on a Dataset."""
    def func_on_ds(ds, args=args, kwargs=kwargs):
        if args is None:
            args = []
        if kwargs is None:
            kwargs = {}
        return func(*ds.data_vars.values(), *args, **kwargs)
    return func_on_ds