code: def template_key_to_intent_response_key(template_key: Text) -> Text:
      """Resolve the intent response key for the given response template.
  
      Args:
          template_key: Name of the response template.
  
      Returns: The corresponding intent response key.
  
      """
      return template_key.split(UTTER_PREFIX)[1]
  
imports: import json
  import logging
  import os
  import re
  from typing import Any, Dict, Optional, Text, Match, List
  import scipy.sparse
  from rasa.shared.nlu.constants import ENTITIES, EXTRACTOR, PRETRAINED_EXTRACTORS, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, ENTITY_ATTRIBUTE_VALUE, ENTITY_ATTRIBUTE_TYPE, ENTITY_ATTRIBUTE_ROLE, ENTITY_ATTRIBUTE_GROUP
  from rasa.shared.constants import UTTER_PREFIX
  import rasa.shared.utils.io
  import rasa.shared.data
label_desc: Use image node_id 6 for calling a global function with example usage: template_key_to_intent_response_key(template_key) and returns: template_key