code: def test_temporal_detection_clips(self):
      dataset = fo.Dataset()
  
      sample1 = fo.Sample(
          filepath="video1.mp4",
          metadata=fo.VideoMetadata(total_frame_count=4),
          event=fo.TemporalDetection(label="meeting", support=[1, 3]),
      )
      sample2 = fo.Sample(filepath="video2.mp4")
      sample3 = fo.Sample(
          filepath="video3.mp4",
          metadata=fo.VideoMetadata(total_frame_count=5),
          event=fo.TemporalDetection(label="party", support=[3, 5]),
      )
  
      dataset.add_samples([sample1, sample2, sample3])
  
      clips = dataset.to_clips("event")
  
      self.assertEqual(len(clips), 2)
  
      clips.tag_samples("test")
  
      self.assertEqual(clips.count_sample_tags(), {"test": 2})
      self.assertEqual(dataset.count_sample_tags(), {})
  
      clips.untag_samples("test")
  
      self.assertEqual(clips.count_sample_tags(), {})
      self.assertEqual(dataset.count_sample_tags(), {})
  
      clips.tag_labels("test")
  
      self.assertEqual(clips.count_label_tags(), {"test": 2})
      self.assertEqual(dataset.count_label_tags(), {"test": 2})
  
      clips.untag_labels("test")
  
      self.assertEqual(clips.count_label_tags(), {})
      self.assertEqual(dataset.count_label_tags(), {})
  
      clips.tag_labels("test")
  
      self.assertEqual(clips.count_label_tags(), {"test": 2})
      self.assertEqual(dataset.count_label_tags(), {"test": 2})
  
      clips.select_labels(tags="test").untag_labels("test")
  
      self.assertEqual(clips.count_label_tags(), {})
      self.assertEqual(dataset.count_label_tags(), {})
  
imports: from copy import deepcopy
  from datetime import date, datetime
  from bson import ObjectId
  import numpy
  import unittest
  import fiftyone
  import fiftyone.core.odm
  from fiftyone import ViewField
  from decorators import drop_datasets
label_desc: Use image node_id 34 for calling the VideoTests obj's underlying member method code with example usage: obj.test_temporal_detection_clips() without return types