code: def test_multilabel_dataset(basedir, multilabel_img):
      # Create a multilabel dataset
      images_dir = os.path.join(basedir, "source-images")
      dataset = _make_multilabel_dataset(multilabel_img, images_dir)
  
      # Multilabel BDDDataset
      export_dir = os.path.join(basedir, "bdd")
      dataset.export(
          export_dir=export_dir,
          dataset_type=fo.types.BDDDataset,
          label_field="gt_*",
      )
      dataset2 = fo.Dataset.from_dir(
          dataset_dir=export_dir,
          dataset_type=fo.types.BDDDataset,
          label_field="gt",
      )
  
      # Multilabel FiftyOneImageLabelsDataset
      export_dir = os.path.join(basedir, "fo-image-labels")
      dataset.export(
          export_dir=export_dir,
          dataset_type=fo.types.FiftyOneImageLabelsDataset,
          label_field="gt_*",
      )
      dataset3 = fo.Dataset.from_dir(
          dataset_dir=export_dir,
          dataset_type=fo.types.FiftyOneImageLabelsDataset,
          label_field="gt",
      )
  
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 14 for calling a global function with example usage: test_multilabel_dataset(basedir, multilabel_img) without return types