@sweepargs(dsp=list(datasets.items()))
def test_plot_dataset_chunks(dsp):
    (dsname, ds) = dsp
    if (ds.targets.dtype.kind == 'f'):
        return
    if ('chunks' not in ds.sa):
        return
    print(dsname)
    plot_dataset_chunks(ds[:, :2])
    pl.close(pl.gcf())
    if (ds.nfeatures > 2):
        assert_raises(ValueError, plot_dataset_chunks, ds)
@sweepargs(dsp=list(datasets.items()))
def test_plot_dataset_chunks(dsp):
    (dsname, ds) = dsp
    if (ds.targets.dtype.kind == 'f'):
        return
    if ('chunks' not in ds.sa):
        return
    print(dsname)
    plot_dataset_chunks(ds[:, :2])
    pl.close(pl.gcf())
    if (ds.nfeatures > 2):
        assert_raises(ValueError, plot_dataset_chunks, ds)