code: def _merge_entity_utterances(raw_utterances, stemmed_utterances):
      # Sort by resolved value, so that values conflict in a deterministic way
      for raw_stemmed_value, resolved_value in sorted(
          iteritems(stemmed_utterances), key=operator.itemgetter(1)
      ):
          if raw_stemmed_value not in raw_utterances:
              raw_utterances[raw_stemmed_value] = resolved_value
      return raw_utterances
  
imports: from __future__ import unicode_literals
  import json
  import operator
  from copy import deepcopy
  from pathlib import Path
  from future.utils import iteritems, viewvalues
  from snips_nlu.common.utils import json_string
  from snips_nlu.constants import END, ENTITIES, LANGUAGE, MATCHING_STRICTNESS, START, UTTERANCES, LICENSE_INFO
  from snips_nlu.entity_parser.builtin_entity_parser import is_builtin_entity
  from snips_nlu.entity_parser.custom_entity_parser_usage import CustomEntityParserUsage
  from snips_nlu.entity_parser.entity_parser import EntityParser
  from snips_nlu.preprocessing import stem, tokenize, tokenize_light
  from snips_nlu.result import parsed_entity
label_desc: Use image node_id 2 for calling a global function with example usage: _merge_entity_utterances(raw_utterances, stemmed_utterances) and returns: raw_utterances