List imgIds = ds.collectFromImageLinks( new IdBlock() );
List imgIds = ds.eachLinkedImage( new IdBlock() );
    private void check_di_ids(List ids)    {        for (Dataset ds: (List<Dataset>) list)        {            List imgIds = ds.collectFromImageLinks( new IdBlock() );            assertTrue( "And our images weren't there",                     imgIds.containsAll( ids ));        }    }