code: def test_dynamic_frame_label_fields(self):
      dynamic_doc = fo.DynamicEmbeddedDocument(
          classification=fo.Classification(label="label"),
          classifications=fo.Classifications(
              classifications=[fo.Classification(label="label")]
          ),
      )
      sample = fo.Sample(filepath="video.mp4")
      sample.frames[1]["dynamic"] = dynamic_doc
  
      dataset = fo.Dataset()
      dataset.add_sample(sample)
      dataset.add_dynamic_frame_fields()
  
      label_id = dynamic_doc["classification"].id
      view = dataset.select_labels(
          [
              {
                  "label_id": label_id,
                  "sample_id": sample.id,
                  "frame_number": 1,
                  "field": "frames.dynamic.classification",
              }
          ]
      )
      dynamic = view.first().frames[1].dynamic
      self.assertTrue(label_id == dynamic.classification.id)
      self.assertFalse("classifications" in dynamic)
  
      view = dataset.filter_labels(
          "frames.dynamic.classification", F("label") == "label"
      )
      dynamic = view.first().frames[1].dynamic
      self.assertTrue(label_id == dynamic.classification.id)
  
      label_id = dynamic_doc["classifications"].classifications[0].id
      view = dataset.select_labels(
          [
              {
                  "label_id": label_id,
                  "sample_id": sample.id,
                  "frame_number": 1,
                  "field": "frames.dynamic.classifications",
              }
          ]
      )
      dynamic = view.first().frames[1].dynamic
      self.assertTrue(
          label_id == dynamic.classifications.classifications[0].id
      )
      self.assertFalse("classification" in dynamic)
  
      view = dataset.filter_labels(
          "frames.dynamic.classifications", F("label") == "label"
      )
      dynamic = view.first().frames[1].dynamic
      self.assertTrue(
          label_id == dynamic.classifications.classifications[0].id
      )
  
file_path: fiftyone/tests/unittests/label_tests.py
imports: import unittest
  from bson import Binary, ObjectId
  import numpy
  import fiftyone
  from decorators import drop_datasets
label_desc: Use image node_id 5 for calling the LabelTests obj's underlying member method code with example usage: obj.test_dynamic_frame_label_fields() without return types