docstr: This test verifies that the meter works as expected on a single
  update + reset + same single update with onehot target.
docstr_tok: ["This","test","verifies","that","the","meter","works","as","expected","on","a","single","update","+","reset","+","same","single","update","with","onehot","target","."]
code: def test_single_meter_update_and_reset_onehot(self) -> None:
      """
      This test verifies that the meter works as expected on a single
      update + reset + same single update with onehot target.
      """
      meter = AccuracyListMeter(
          num_meters=1, topk_values=[1, 2], meter_names=[]
      )
  
      # Batchsize = 3, num classes = 3, score is a value in {1, 2,
      # 3}...3 is the highest score
      model_output = torch.tensor([[3, 2, 1], [3, 1, 2], [1, 3, 2]])
  
      # Class 0 is the correct class for sample 1, class 2 for sample 2, etc
      target = torch.tensor([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
  
      # 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": 2 / 3.0}
  
      self.meter_update_and_reset_test(
          meter, model_output, target, expected_value
      )
  
file_path: vissl/tests/test_meter_accuracy.py
imports: import torch
  import vissl.meters
  from classy_vision.meters import build_meter
  from meter_test_utils import ClassificationMeterTest
  from vissl.meters.accuracy_list_meter import AccuracyListMeter
label_desc: Use image node_id 4 for calling the TestAccuracyListMeter obj's underlying member method code with example usage: obj.test_single_meter_update_and_reset_onehot() without return types