code: def builtin_slot(internal_slot, resolved_value):
      """Creates a builtin slot with *resolved_value* being the resolved value
      of the slot
  
      Example:
  
          >>> rng = [10, 32]
          >>> raw_value = "twenty degrees celsius"
          >>> entity = "snips/temperature"
          >>> slot_name = "beverageTemperature"
          >>> s = unresolved_slot(rng, raw_value, entity, slot_name)
          >>> resolved = {
          ...     "kind": "Temperature",
          ...     "value": 20,
          ...     "unit": "celsius"
          ... }
          >>> from snips_nlu.common.utils import json_string
          >>> print(json_string(builtin_slot(s, resolved), indent=4))
          {
              "entity": "snips/temperature",
              "range": {
                  "end": 32,
                  "start": 10
              },
              "rawValue": "twenty degrees celsius",
              "slotName": "beverageTemperature",
              "value": {
                  "kind": "Temperature",
                  "unit": "celsius",
                  "value": 20
              }
          }
      """
      return {
          RES_MATCH_RANGE: _convert_range(
              internal_slot[RES_MATCH_RANGE]
          ),
          RES_RAW_VALUE: internal_slot[RES_VALUE],
          RES_VALUE: resolved_value,
          RES_ENTITY: internal_slot[RES_ENTITY],
          RES_SLOT_NAME: internal_slot[RES_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 4 for calling a global function with example usage: builtin_slot(internal_slot, resolved_value) and returns: dict