code: def test_meter_get_set_classy_state_test(self):
      # In this test we update meter0 with model_output0 & target0
      # and we update meter1 with model_output1 & target1 then
      # transfer the state from meter1 to meter0 and validate they
      # give same expected value.
      # Expected value is the expected value of meter1
      meters = [
          VideoAccuracyMeter(
              topk=[1, 2],
              clips_per_video_train=1,
              clips_per_video_test=2,
          ),
          VideoAccuracyMeter(
              topk=[1, 2],
              clips_per_video_train=1,
              clips_per_video_test=2,
          ),
      ]
      # Batchsize = 3, num classes = 3, score is a value in {1, 2,
      # 3}...3 is the highest score
      model_outputs = [
          torch.tensor(
              [
                  [1, 2, 3],
                  [1, 1, 3],
                  [2, 2, 1],
                  [3, 2, 1],
                  [2, 2, 2],
                  [2, 3, 1],
              ],
              dtype=torch.float,
          ),
          torch.tensor(
              [
                  [3, 2, 1],
                  [3, 1, 2],
                  [1, 2, 2],
                  [1, 2, 3],
                  [2, 2, 2],
                  [1, 3, 2],
              ],
              dtype=torch.float,
          ),
      ]
      # Class 2 is the correct class for sample 1, class 0 for sample 2, etc
      targets = [
          torch.tensor([0, 0, 1, 1, 2, 2]),
          torch.tensor([0, 0, 1, 1, 2, 2]),
      ]
      # Value for second update
      expected_value = {"top_1": 1 / 3.0, "top_2": 3 / 3.0}
  
      self.meter_get_set_classy_state_test(
          meters, model_outputs, targets, 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 7 for calling the TestVideoAccuracyMeter obj's underlying member method code with example usage: obj.test_meter_get_set_classy_state_test() without return types