code: def test_legacy_fiftyone_dataset_with_run_results(basedir):
      dataset = foz.load_zoo_dataset("quickstart").clone()
  
      dataset.evaluate_detections("predictions", eval_key="eval")
      fob.compute_visualization(dataset, brain_key="umap")
  
      export_dir = os.path.join(basedir, "legacy-fiftyone-dataset")
  
      dataset.export(
          export_dir=export_dir,
          dataset_type=fo.types.LegacyFiftyOneDataset,
      )
      dataset2 = fo.Dataset.from_dir(
          dataset_dir=export_dir,
          dataset_type=fo.types.LegacyFiftyOneDataset,
      )
  
      print(dataset)
      print(dataset.get_evaluation_info("eval"))
      print(dataset.get_brain_info("umap"))
      print(repr(dataset.load_evaluation_results("eval")))
      print(repr(dataset.load_brain_results("umap")))
  
      print(dataset2)
      print(dataset2.get_evaluation_info("eval"))
      print(dataset2.get_brain_info("umap"))
      print(repr(dataset2.load_evaluation_results("eval")))
      print(repr(dataset2.load_brain_results("umap")))
  
imports: import random
  import os
  import numpy
  import pytest
  import eta.core.utils
  import fiftyone
  import fiftyone.utils.image
  import fiftyone.brain
  import fiftyone.zoo
  from fiftyone import ViewField
label_desc: Use image node_id 24 for calling a global function with example usage: test_legacy_fiftyone_dataset_with_run_results(basedir) without return types