code: def test_values(self):
      d = fo.Dataset()
      d.add_sample_field(
          "predictions",
          fo.EmbeddedDocumentField,
          embedded_doc_type=fo.Detections,
      )
      self.assertListEqual(d.values("predictions"), [])
      self.assertListEqual(d.values("predictions.detections"), [])
      self.assertListEqual(d.values("predictions.detections.label"), [])
  
      d.add_samples(
          [
              fo.Sample(
                  filepath="image1.jpeg",
                  predictions=fo.Detections(
                      detections=[
                          fo.Detection(label="cat"),
                          fo.Detection(label="dog"),
                      ]
                  ),
              ),
              fo.Sample(
                  filepath="image2.jpeg",
                  predictions=fo.Detections(
                      detections=[
                          fo.Detection(label="cat"),
                          fo.Detection(label="rabbit"),
                          fo.Detection(label="squirrel"),
                      ]
                  ),
              ),
              fo.Sample(
                  filepath="image3.jpeg",
                  predictions=fo.Detections(
                      detections=[
                          fo.Detection(label="elephant"),
                          fo.Detection(),
                      ]
                  ),
              ),
              fo.Sample(filepath="image4.jpeg", predictions=None),
              fo.Sample(filepath="image5.jpeg"),
          ]
      )
  
      self.assertListEqual(
          d.values("predictions.detections.label"),
          [
              ["cat", "dog"],
              ["cat", "rabbit", "squirrel"],
              ["elephant", None],
              None,
              None,
          ],
      )
  
      self.assertListEqual(
          d.values(
              "predictions.detections.label", missing_value="missing"
          ),
          [
              ["cat", "dog"],
              ["cat", "rabbit", "squirrel"],
              ["elephant", "missing"],
              None,
              None,
          ],
      )
  
      self.assertListEqual(
          d.values("predictions.detections[].label"),
          ["cat", "dog", "cat", "rabbit", "squirrel", "elephant", None],
      )
  
      self.assertListEqual(
          d.values(F("predictions.detections[].label")),
          ["cat", "dog", "cat", "rabbit", "squirrel", "elephant", None],
      )
  
      self.assertListEqual(
          d.values(
              "predictions.detections[].label", missing_value="missing"
          ),
          [
              "cat",
              "dog",
              "cat",
              "rabbit",
              "squirrel",
              "elephant",
              "missing",
          ],
      )
  
      self.assertListEqual(
          d.values(F("predictions.detections").length()),
          [2, 3, 2, 0, 0],
      )
  
      self.assertListEqual(
          d.values(
              (F("predictions.detections.label") != None).if_else(
                  "found", "missing"
              )
          ),
          [
              ["found", "found"],
              ["found", "found", "found"],
              ["found", "missing"],
              None,
              None,
          ],
      )
  
      self.assertListEqual(
          d.values(
              (F("predictions.detections[].label") != None).if_else(
                  "found", "missing"
              )
          ),
          [
              "found",
              "found",
              "found",
              "found",
              "found",
              "found",
              "missing",
          ],
      )
  
imports: from datetime import date, datetime, timedelta
  import math
  from bson import ObjectId
  import numpy
  import unittest
  import fiftyone
  import fiftyone.core.fields
  from fiftyone import ViewField
  from decorators import drop_datasets
label_desc: Use image node_id 11 for calling the DatasetTests obj's underlying member method code with example usage: obj.test_values() without return types