docstr: Searches through all turns in a dialogue for any service calls, returns these.
docstr_tok: ["Searches","through","all","turns","in","a","dialogue","for","any","service","calls",",","returns","these","."]
code: def _get_all_service_calls(self, turns):
      """
      Searches through all turns in a dialogue for any service calls, returns these.
      """
      results = []
      for turn in turns:
          for frame in turn["frames"]:
              if "service_call" in frame:
                  call = frame["service_call"]
                  item = call["parameters"]
                  item[tod.STANDARD_API_NAME_SLOT] = call["method"]
                  results.append(item)
      return results
  
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 8 for calling the GoogleSGDParser obj's underlying member method code with example usage: obj._get_all_service_calls(turns) and returns: results