public void TestLoadSecondaryDataset(IMAGEDB_LOAD_METHOD loadMethod, int nLoadLimit)
        {
            Log log = new Log("Test secondary dataset");

            log.EnableTrace = true;

            IXImageDatabase db     = new MyCaffeImageDatabase(log);
            Stopwatch       sw     = new Stopwatch();
            string          strDs  = "MNIST";
            string          strDs2 = "CIFAR-10";
            string          str;

            SettingsCaffe settings = new SettingsCaffe();

            settings.ImageDbLoadMethod = loadMethod;
            settings.ImageDbLoadLimit  = nLoadLimit;

            sw.Start();
            db.InitializeWithDsName(settings, strDs);
            str = sw.ElapsedMilliseconds.ToString();
            Trace.WriteLine(strDs + " Initialization Time: " + str + " ms.");

            sw.Restart();
            db.LoadDatasetByName(strDs2);
            str = sw.ElapsedMilliseconds.ToString();
            Trace.WriteLine(strDs2 + " Initialization Time: " + str + " ms.");

            sw.Restart();
            db.CleanUp();
            str = sw.ElapsedMilliseconds.ToString();
            Trace.WriteLine("Cleanup Time: " + str + " ms.");

            sw.Restart();
            IDisposable idisp = db as IDisposable;

            if (idisp != null)
            {
                idisp.Dispose();
            }

            str = sw.ElapsedMilliseconds.ToString();
            Trace.WriteLine("Dispose Time: " + str + " ms.");
        }