code: def test_cocovid_image(self):
      from sahi.utils.coco import CocoVidAnnotation, CocoVidImage
  
      # init coco image
      file_name = "tests/data/small-vehicles1.jpeg"
      height = 580
      width = 1068
      cocovid_image = CocoVidImage(file_name, height, width)
  
      # 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)
  
      # create and add second annotation
      bbox2 = [1, 1, 50, 150]
      category_id2 = 2
      category_name2 = "human"
      image_id2 = 14
      instance_id2 = 23
      iscrowd2 = 0
      cocovid_annotation_2 = CocoVidAnnotation(
          bbox=bbox2,
          category_id=category_id2,
          category_name=category_name2,
          image_id=image_id2,
          instance_id=instance_id2,
          iscrowd=iscrowd2,
      )
      cocovid_image.add_annotation(cocovid_annotation_2)
  
      # compare
      self.assertEqual(cocovid_image.file_name, file_name)
      self.assertEqual(cocovid_image.json["file_name"], file_name)
      self.assertEqual(cocovid_image.height, height)
      self.assertEqual(cocovid_image.json["height"], height)
      self.assertEqual(cocovid_image.width, width)
      self.assertEqual(cocovid_image.json["width"], width)
      self.assertEqual(len(cocovid_image.annotations), 2)
      self.assertEqual(
          cocovid_image.annotations[0].category_id, category_id1
      )
      self.assertEqual(
          cocovid_image.annotations[0].category_name, category_name1
      )
      self.assertEqual(cocovid_image.annotations[0].image_id, image_id1)
      self.assertEqual(cocovid_image.annotations[0].bbox, bbox1)
  
      self.assertEqual(
          cocovid_image.annotations[1].category_id, category_id2
      )
      self.assertEqual(
          cocovid_image.annotations[1].category_name, category_name2
      )
      self.assertEqual(
          cocovid_image.annotations[1].instance_id, instance_id2
      )
      self.assertEqual(cocovid_image.annotations[1].bbox, bbox2)
  
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 5 for calling the TestCocoUtils obj's underlying member method code with example usage: obj.test_cocovid_image() without return types