class_docstr: Helper container which encapsulates TOD metrics and does some basic prepocessing to
  handlers to calculate said metrics.
  
  This class should generally not need to be changed; add new metrics handlers to
  `WORLD_METRIC_HANDLERS` (or otherwise override `self.handlers` of this class) to
  change metrics actively being used.
class_docstr_tok: ["Helper","container","which","encapsulates","TOD","metrics","and","does","some","basic","prepocessing","to","handlers","to","calculate","said","metrics",".","This","class","should","generally","not","need","to","be","changed",";","add","new","metrics","handlers","to","`","WORLD_METRIC_HANDLERS","`","(","or","otherwise","override","`","self.handlers","`","of","this","class",")","to","change","metrics","actively","being","used","."]
code: def __init__(self, shared: Dict[str, Any] = None) -> None:
      super().__init__(shared=shared)
      self.handlers = [x() for x in WORLD_METRIC_HANDLERS]
      self.convo_started = False
      self.last_episode_metrics = Metrics()
  
file_path: ParlAI/parlai/core/tod/world_metrics.py
imports: from parlai.core.message import Message
  from parlai.core.metrics import Metrics
  from parlai.core.tod.tod_core import TodAgentType, TOD_AGENT_TYPE_TO_PREFIX, SerializationHelpers, STANDARD_GOAL
  from typing import Any, Dict
  import parlai.core.tod.world_metrics_handlers
label_desc: Use image node_id 1 to create a new TodMetrics object from inherited base classes: Metrics with example: obj = TodMetrics(shared)