code: def resolved_slot(
      match_range, raw_value, resolved_value, entity, slot_name
  ):
      """Creates a resolved slot
  
      Args:
          match_range (dict): Range of the slot within the sentence
              (ex: {"start": 3, "end": 10})
          raw_value (str): Slot value as it appears in the sentence
          resolved_value (dict): Resolved value of the slot
          entity (str): Entity which the slot belongs to
          slot_name (str): Slot type
  
      Returns:
          dict: The resolved slot
  
      Example:
  
          >>> resolved_value = {
          ...     "kind": "Temperature",
          ...     "value": 20,
          ...     "unit": "celsius"
          ... }
          >>> slot = resolved_slot({"start": 10, "end": 19}, "earl grey",
          ... resolved_value, "beverage", "beverage")
          >>> from snips_nlu.common.utils import json_string
          >>> print(json_string(slot, indent=4, sort_keys=True))
          {
              "entity": "beverage",
              "range": {
                  "end": 19,
                  "start": 10
              },
              "rawValue": "earl grey",
              "slotName": "beverage",
              "value": {
                  "kind": "Temperature",
                  "unit": "celsius",
                  "value": 20
              }
          }
      """
      return {
          RES_MATCH_RANGE: match_range,
          RES_RAW_VALUE: raw_value,
          RES_VALUE: resolved_value,
          RES_ENTITY: entity,
          RES_SLOT_NAME: slot_name,
      }
  
file_path: snips-nlu/snips_nlu/result.py
imports: from __future__ import unicode_literals
  from snips_nlu.constants import RES_ENTITY, RES_INPUT, RES_INTENT, RES_INTENT_NAME, RES_MATCH_RANGE, RES_PROBA, RES_RAW_VALUE, RES_SLOTS, RES_SLOT_NAME, RES_VALUE, ENTITY_KIND, RESOLVED_VALUE, VALUE
label_desc: Use image node_id 5 for calling a global function with example usage: resolved_slot(match_range, raw_value, resolved_value, entity, slot_name) and returns: dict