docstr: Returns map where keys are intents and values are names of required/optional
  slots.
  
  We do not care about `result_slots` or default values of optional slots.
docstr_tok: ["Returns","map","where","keys","are","intents","and","values","are","names","of","required\/optional","slots",".","We","do","not","care","about","`","result_slots","`","or","default","values","of","optional","slots","."]
code: def _get_intent_groundinging(self, schema, domains):
      """
      Returns map where keys are intents and values are names of required/optional
      slots.
  
      We do not care about `result_slots` or default values of optional slots.
      """
      result = []
      for domain in domains:
          apis = self._get_apis_in_domain(schema, domain)
          for intent, params in apis.items():
              here = {}
              here[tod.STANDARD_API_NAME_SLOT] = intent
              if tod.STANDARD_REQUIRED_KEY in params:
                  here[tod.STANDARD_REQUIRED_KEY] = params[
                      tod.STANDARD_REQUIRED_KEY
                  ]
              if (
                  tod.STANDARD_OPTIONAL_KEY in params
                  and len(params[tod.STANDARD_OPTIONAL_KEY]) > 0
              ):
                  here[tod.STANDARD_OPTIONAL_KEY] = params[
                      tod.STANDARD_OPTIONAL_KEY
                  ].keys()
              result.append(here)
      return result
  
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 7 for calling the GoogleSGDParser obj's underlying member method code with example usage: obj._get_intent_groundinging(schema, domains) and returns: result