class_docstr: Base class for storing details about valid API calls (information about Goals
  handled in TodMetricsHandler)
class_docstr_tok: ["Base","class","for","storing","details","about","valid","API","calls","(","information","about","Goals","handled","in","TodMetricsHandler",")"]
code: def handle_api_call(
      self, message: Message, api_call: Dict
  ) -> Optional[Dict[str, Metric]]:
      if len(api_call) > 0:
          self.api_turns.append(api_call)
  
imports: from parlai.core.message import Message
  from parlai.core.metrics import Metric, AverageMetric
  from parlai.core.tod.tod_core import STANDARD_DONE
  from typing import Dict, List, Optional
label_desc: Use image node_id 2 for calling the _ApiCallGoalInteractionHelper obj's underlying member method code with example usage: obj.handle_api_call(message, api_call) without return types