class_docstr: This class was reporting a few too many metrics, but is useful for test purposes, so
  we're keeping it around.
  
  `AllGoalApiCallSuccessMetricsHandler` is the streamlined, less spammy version of
  this class.
code: def handle_goals(
      self, message: Message, goals: List[Dict]
  ) -> Optional[Dict[str, Metric]]:
      self.goals = goals
      self.required_goals = get_req_only_goals(goals, self.api_schemas)
  
imports: from parlai.core.message import Message
  from parlai.core.metrics import Metric, AverageMetric, normalize_answer, BleuMetric, SumMetric
  from parlai.core.tod.tod_core import STANDARD_API_NAME_SLOT, STANDARD_REQUIRED_KEY, STANDARD_OPTIONAL_KEY, STANDARD_API_SCHEMAS
  from typing import Dict, List, Optional, Tuple
  from parlai.core.tod.world_metrics_handlers import TodMetricsHandler, register_metrics_handler, _ApiCallGoalInteractionHelper, goals_hit_helper
label_desc: Use image node_id 1 for calling the LegacyGoalApiCallInteractionsMetricsHandler obj's underlying member method code with example usage: obj.handle_goals(message, goals) without return types