class_docstr: Meter to calculate top-k accuracy for single label/ multi label
  image classification task.
class_docstr_tok: ["Meter","to","calculate","top-k","accuracy","for","single","label\/","multi","label","image","classification","task","."]
docstr: Instantiates a AccuracyMeter from a configuration.
  
  Args:
      config: A configuration for a AccuracyMeter.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      A AccuracyMeter instance.
docstr_tok: ["Instantiates","a","AccuracyMeter","from","a","configuration",".","Args",":","config",":","A","configuration","for","a","AccuracyMeter",".","See",":","func",":","`","__init__","`","for","parameters","expected","in","the","config",".","Returns",":","A","AccuracyMeter","instance","."]
code: def from_config(cls, config: Dict[str, Any]) -> "AccuracyMeter":
      """Instantiates a AccuracyMeter from a configuration.
  
      Args:
          config: A configuration for a AccuracyMeter.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          A AccuracyMeter instance.
      """
      return cls(topk=config["topk"])
  
file_path: ClassyVision/classy_vision/meters/accuracy_meter.py
imports: from typing import Any, Dict, Sequence
  import torch
  from classy_vision.generic.distributed_util import all_reduce_sum
  from classy_vision.generic.util import is_pos_int, maybe_convert_to_one_hot
  from classy_vision.meters import ClassyMeter
  from .None import register_meter
label_desc: Use image node_id 2 for calling the AccuracyMeter obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls