class_docstr: Stats tracker for computing metrics on the fly.
class_docstr_tok: ["Stats","tracker","for","computing","metrics","on","the","fly","."]
docstr: Update the stats by the dict.
docstr_tok: ["Update","the","stats","by","the","dict","."]
code: def update_from_dict(
      self, dic: Dict[str, float], batch_size: int
  ) -> None:
      """Update the stats by the dict."""
      for k, v in dic.items():
          self.update(k, v, batch_size)
  
file_path: kornia/kornia/x/utils.py
imports: from dataclasses import dataclass, field
  from enum import Enum
  from typing import Any, Callable, Dict, Tuple
  from kornia.core import Module, Tensor
  from kornia.metrics.average_meter import AverageMeter
label_desc: Use image node_id 4 for calling the StatsTracker obj's underlying member method code with example usage: obj.update_from_dict(dic, batch_size) without return types