docstr: This test verifies that the meter works as expected on a single
  update + reset + same single update.
docstr_tok: ["This","test","verifies","that","the","meter","works","as","expected","on","a","single","update","+","reset","+","same","single","update","."]
code: def test_single_meter_update_and_reset(self):
      """
      This test verifies that the meter works as expected on a single
      update + reset + same single update.
      """
      meter = VideoAccuracyMeter(
          topk=[1, 2], clips_per_video_train=1, clips_per_video_test=2
      )
      # Batchsize = 3, num classes = 3, clips_per_video is 2,
      # score is a value in {1, 2, 3}
      model_output = torch.tensor(
          [
              [3, 2, 1],
              [3, 1, 2],
              [1, 2, 2],
              [1, 2, 3],
              [2, 2, 2],
              [1, 3, 2],
          ],
          dtype=torch.float,
      )
      # Class 0 is the correct class for video 1, class 2 for video 2, and
      # class 1 for video
      target = torch.tensor([0, 0, 1, 1, 2, 2])
  
      # Only the first sample has top class correct, first and third
      # sample have correct class in top 2
      expected_value = {"top_1": 1 / 3.0, "top_2": 3 / 3.0}
  
      self.meter_update_and_reset_test(
          meter, model_output, target, expected_value, is_train=False
      )
  
file_path: ClassyVision/test/meters_video_accuracy_meter_test.py
imports: import torch
  from classy_vision import meters
  from classy_vision.meters import VideoAccuracyMeter
  from test.generic.meter_test_utils import ClassificationMeterTest
label_desc: Use image node_id 2 for calling the TestVideoAccuracyMeter obj's underlying member method code with example usage: obj.test_single_meter_update_and_reset() without return types