code: def test_video_frames_filtered(self):
      sample1 = fo.Sample(filepath="video1.mp4")
      sample1.frames[1] = fo.Frame(
          gt=fo.Detections(
              detections=[
                  fo.Detection(label="cat"),
                  fo.Detection(label="dog"),
              ]
          )
      )
      sample1.frames[2] = fo.Frame(
          gt=fo.Detections(
              detections=[
                  fo.Detection(label="dog"),
                  fo.Detection(label="rabbit"),
              ]
          )
      )
  
      sample2 = fo.Sample(filepath="video2.mp4")
      sample2.frames[2] = fo.Frame(
          gt=fo.Detections(
              detections=[
                  fo.Detection(label="cat"),
                  fo.Detection(label="dog"),
              ]
          )
      )
      sample2.frames[3] = fo.Frame(
          gt=fo.Detections(
              detections=[
                  fo.Detection(label="dog"),
                  fo.Detection(label="rabbit"),
              ]
          )
      )
  
      dataset = fo.Dataset()
      dataset.add_samples([sample1, sample2])
  
      view = dataset.filter_labels("frames.gt", F("label") == "cat")
  
      sample1_view = view.first()
  
      self.assertTrue(len(sample1_view.frames), 2)
      self.assertTrue(list(sample1_view.frames.keys()), [1, 2])
  
      frame_numbers = []
      for frame_number, frame in sample1_view.frames.items():
          frame_numbers.append(frame_number)
          self.assertEqual(frame_number, frame.frame_number)
  
      self.assertListEqual(frame_numbers, [1, 2])
  
      self.assertEqual(len(sample1_view.frames[1].gt.detections), 1)
      self.assertEqual(len(sample1_view.frames[2].gt.detections), 0)
  
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 18 for calling the VideoTests obj's underlying member method code with example usage: obj.test_video_frames_filtered() without return types