### Question:
ImageNet extends AbstractImageFolder { public static Builder builder() { return new Builder(); } ImageNet(Builder builder); static Builder builder(); String[] getWordNetIds(); String[] getClassNames(); String[] getClassFull(); @Override void prepare(Progress progress);  }### Answer:
@Test(enabled = false) public void testImageNetLocal() throws IOException, TranslateException { Repository repository = Repository.newInstance( "test", System.getProperty("user.home") + "/Desktop/testImagenet"); ImageNet imagenet = ImageNet.builder() .optUsage(Usage.VALIDATION) .setRepository(repository) .setSampling(32, true) .build(); try (Model model = Model.newInstance("model")) { TrainingConfig config = new DefaultTrainingConfig(Loss.softmaxCrossEntropyLoss()); try (Trainer trainer = model.newTrainer(config)) { for (Batch batch : trainer.iterateDataset(imagenet)) { Assert.assertEquals(batch.getData().size(), 1); Assert.assertEquals(batch.getLabels().size(), 1); batch.close(); } } } }