### Question:
FashionMnist extends ArrayDataset { public static FashionMnist.Builder builder() { return new FashionMnist.Builder(); } private  FashionMnist(FashionMnist.Builder builder); static FashionMnist.Builder builder(); @Override void prepare(Progress progress); static final int IMAGE_WIDTH; static final int IMAGE_HEIGHT; static final int NUM_CLASSES; }### Answer:
@Test public void testFashMnistRemote() throws IOException, TranslateException { TrainingConfig config = new DefaultTrainingConfig(Loss.softmaxCrossEntropyLoss()); try (Model model = Model.newInstance("model")) { model.setBlock(Blocks.identityBlock()); NDManager manager = model.getNDManager(); FashionMnist fashionMnist = FashionMnist.builder() .optManager(manager) .optUsage(Dataset.Usage.TEST) .setSampling(32, true) .build(); try (Trainer trainer = model.newTrainer(config)) { for (Batch batch : trainer.iterateDataset(fashionMnist)) { Assert.assertEquals(batch.getData().size(), 1); Assert.assertEquals(batch.getLabels().size(), 1); batch.close(); } } } }