code: def _get_api_call_and_results(self, sys_turn):
      api_call = {}
      api_resp = {}
      for frame in sys_turn["frames"]:
          if "service_call" in frame:
              # API CALL
              for slot_type, slot_value in frame["service_call"][
                  "parameters"
              ].items():
                  if slot_value:
                      api_call[
                          f"{slot_type.strip()}"
                      ] = SerializationHelpers.inner_list_join(
                          slot_value
                      )
              api_call[tod.STANDARD_API_NAME_SLOT] = frame[
                  "service_call"
              ]["method"]
              assert "service_results" in frame
  
          # API Resp
          if "service_results" in frame:
              api_resp = {}
              service_results = frame["service_results"]
              if len(service_results) > 0:
                  for key, value in service_results[0].items():
                      api_resp[
                          key
                      ] = SerializationHelpers.inner_list_join(value)
      return api_call, api_resp
  
imports: import glob
  import json
  import os
  from typing import Any, Dict, List, Optional
  import parlai.tasks.google_sgd.build
  import parlai.core.tod.tod_core
  import parlai.core.tod.tod_agents
  from parlai.core.tod.tod_core import SerializationHelpers
  from parlai.core.message import Message
  from parlai.core.metrics import AverageMetric
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from fuzzywuzzy import fuzz
  from parlai.utils.io import PathManager
label_desc: Use image node_id 5 for calling the GoogleSGDParser obj's underlying member method code with example usage: obj._get_api_call_and_results(sys_turn) and returns: api_call,  api_resp