code: def _make_labeled_dataset_with_no_labels(img, images_dir):
      filepath = os.path.join(images_dir, "test.png")
      foui.write(img, filepath)
  
      dataset = fo.Dataset()
      dataset.add_sample(fo.Sample(filepath=filepath))
      dataset.add_sample_field(
          "ground_truth",
          fo.EmbeddedDocumentField,
          embedded_doc_type=fo.Label,
      )
  
      dataset.info = {
          # FiftyOneImageClassificationDataset
          # FiftyOneImageDetectionDataset
          "classes": ["cat", "dog"],
          # COCODetectionDataset
          "year": "5151",
          "version": "5151",
          "description": "Brian's Dataset",
          "contributor": "Brian Moore",
          "url": "https://github.com/brimoor",
          "date_created": "5151-51-51T51:51:51",
          "licenses": ["license1", "license2"],
          # CVATImageDataset
          "task_labels": [
              {
                  "name": "cat",
                  "attributes": [
                      {"name": "fluffy", "categories": ["yes", "no"]}
                  ],
              },
              {
                  "name": "dog",
                  "attributes": [
                      {
                          "name": "awesome",
                          "categories": ["yes", "of course"],
                      }
                  ],
              },
          ],
      }
      dataset.save()
  
      return dataset
  
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 7 for calling a global function with example usage: _make_labeled_dataset_with_no_labels(img, images_dir) and returns: dataset