List imagesIds = ds.collectFromImageLinks( new IdBlock() );
List imagesIds = ds.eachLinkedImage( new IdBlock() );
    private void check_pdi_ids(List ids1, List ids2)    {        check_pd_ids( ids1 );        for (Project prj : (List<Project>) list)        {            for (Dataset ds : (List<Dataset>) prj.collectFromDatasetLinks(null))            {                List imagesIds = ds.collectFromImageLinks( new IdBlock() );                assertTrue( "Missing images",                         imagesIds.containsAll( ids2 ));            }                    }    }