code: def test_dynamic_frame_label_tags(self):
      sample1 = fo.Sample(
          filepath="video1.mp4",
      )
      sample1.frames[1]["dynamic"] = fo.DynamicEmbeddedDocument(
          classification=fo.Classification(label="hi"),
          classifications=fo.Classifications(
              classifications=[
                  fo.Classification(label="spam"),
                  fo.Classification(label="eggs"),
              ]
          ),
      )
      # test with empty documents
      sample1.frames[2]["dynamic"] = fo.DynamicEmbeddedDocument()
  
      sample2 = fo.Sample(filepath="video2.mp4")
  
      dataset = fo.Dataset()
      dataset.add_samples([sample1, sample2], dynamic=True)
  
      label_fields = set(dataset._get_label_fields())
  
      self.assertSetEqual(
          label_fields,
          {
              "frames.dynamic.classification",
              "frames.dynamic.classifications",
          },
      )
  
      self.assertDictEqual(dataset.count_label_tags(), {})
  
      dataset.tag_labels("test")
      self.assertDictEqual(dataset.count_label_tags(), {"test": 3})
      self.assertDictEqual(
          dataset.count_label_tags(
              label_fields="frames.dynamic.classification"
          ),
          {"test": 1},
      )
      self.assertDictEqual(
          dataset.count_label_tags(
              label_fields="frames.dynamic.classifications"
          ),
          {"test": 2},
      )
  
      dataset.untag_labels("test")
      self.assertDictEqual(dataset.count_label_tags(), {})
  
      dataset.tag_labels(
          "test", label_fields="frames.dynamic.classification"
      )
      self.assertDictEqual(dataset.count_label_tags(), {"test": 1})
      self.assertDictEqual(
          dataset.count_label_tags(
              label_fields="frames.dynamic.classification"
          ),
          {"test": 1},
      )
  
      dataset.untag_labels("test")
      self.assertDictEqual(dataset.count_label_tags(), {})
  
      dataset.tag_labels(
          "test", label_fields="frames.dynamic.classifications"
      )
      self.assertDictEqual(dataset.count_label_tags(), {"test": 2})
      self.assertDictEqual(
          dataset.count_label_tags(
              label_fields="frames.dynamic.classifications"
          ),
          {"test": 2},
      )
  
      dataset.untag_labels(
          "test", label_fields="frames.dynamic.classifications"
      )
      self.assertDictEqual(dataset.count_label_tags(), {})
      self.assertDictEqual(
          dataset.count_label_tags(
              label_fields="frames.dynamic.classifications"
          ),
          {},
      )
  
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 6 for calling the LabelTests obj's underlying member method code with example usage: obj.test_dynamic_frame_label_tags() without return types