code: def test_custom_generic_dataset_imports(basedir):
      # Types of generic datasets to test
      dataset_types = [
          fo.types.LegacyFiftyOneDataset,
          fo.types.FiftyOneDataset,
      ]
  
      # Load a small generic dataset
      gdataset = foz.load_zoo_dataset(
          "quickstart",
          dataset_name="generic-dataset",
          shuffle=True,
          max_samples=100,
      )
  
      for dataset_type in dataset_types:
          print(dataset_type.__name__)
          export_dir = os.path.join(
              basedir, "custom-imports", dataset_type.__name__
          )
          _run_custom_imports(
              gdataset, export_dir, dataset_type, max_samples=3
          )
  
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 21 for calling a global function with example usage: test_custom_generic_dataset_imports(basedir) without return types