code: def test_coco_video(self):
      from sahi.utils.coco import (
          CocoVidAnnotation,
          CocoVideo,
          CocoVidImage,
      )
  
      # init coco image
      file_name = "tests/data/small-vehicles1.jpeg"
      height1 = 519
      width1 = 1067
      cocovid_image = CocoVidImage(file_name, height1, width1)
  
      # create and add first annotation
      bbox1 = [1, 1, 324, 199]
      category_id1 = 3
      category_name1 = "car"
      image_id1 = 13
      instance_id1 = 22
      iscrowd1 = 0
      cocovid_annotation_1 = CocoVidAnnotation(
          bbox=bbox1,
          category_id=category_id1,
          category_name=category_name1,
          image_id=image_id1,
          instance_id=instance_id1,
          iscrowd=iscrowd1,
      )
      cocovid_image.add_annotation(cocovid_annotation_1)
  
      # init coco video
      name = "small-vehicles"
      height2 = 580
      width2 = 1068
      coco_video = CocoVideo(name=name, height=height2, width=width2)
  
      # add first image
      coco_video.add_cocovidimage(cocovid_image)
  
      # compare
      self.assertEqual(coco_video.name, name)
      self.assertEqual(coco_video.json["name"], name)
      self.assertEqual(coco_video.height, height2)
      self.assertEqual(coco_video.json["height"], height2)
      self.assertEqual(coco_video.width, width2)
      self.assertEqual(coco_video.json["width"], width2)
      self.assertEqual(len(coco_video.images), 1)
      self.assertEqual(coco_video.images[0].file_name, file_name)
      self.assertEqual(
          coco_video.images[0].json["file_name"], file_name
      )
      self.assertEqual(coco_video.images[0].height, height1)
      self.assertEqual(coco_video.images[0].json["height"], height1)
      self.assertEqual(coco_video.images[0].width, width1)
      self.assertEqual(coco_video.images[0].json["width"], width1)
      self.assertEqual(coco_video.images[0].annotations[0].bbox, bbox1)
      self.assertEqual(
          coco_video.images[0].annotations[0].json["bbox"], bbox1
      )
  
imports: import os
  import shutil
  import unittest
  from sahi.utils.coco import merge, update_categories
  from sahi.utils.file import load_json
label_desc: Use image node_id 6 for calling the TestCocoUtils obj's underlying member method code with example usage: obj.test_coco_video() without return types