def METHOD_NAME():
    table = sc.data.table_xyz(100)
    hist = table.hist(x=7)
    hist.variances = hist.values
    func = sc.lookup(func=hist, dim='x')
    with pytest.raises(sc.VariancesError):
        func(table.coords['x'])