public void TestDatasetBlockwiseSliceFetch()
        {
            RedirectGlobalsToTempPath();

            string filename = nameof(TestDatasetBlockwiseSliceFetch) + "test.dat";

            CreateCsvTempFile(filename);

            CsvRecordExtractor    extractor = new CsvRecordReader(new FileSource(filename)).Extractor("inputs", 0, "targets", 3);
            ExtractedDataset      dataset   = new ExtractedDataset("name", 1, extractor);
            DatasetBlockwiseSlice slice     = new DatasetBlockwiseSlice(dataset, 1, 2, 3);

            Assert.AreEqual(new float[] { 4.9f }, slice.FetchBlock(0, new CpuFloat32Handler())["inputs"].GetDataAs <float>().GetValuesArrayAs <float>(0, 1));

            extractor.Reader?.Dispose();
            dataset.Dispose();

            DeleteTempFile(filename);
        }