code: def test_should_parse_intent_with_duplicated_slot_names(self):
      # Given
      slots_dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: math_operation
  slots:
    - name: number
      entity: snips/number
  utterances:
    - what is [number](one) plus [number](one)"""
      )
      dataset = Dataset.from_yaml_files(
          "en", [slots_dataset_stream]
      ).json
      parser = LookupIntentParser().fit(dataset)
      text = "what is one plus one"
  
      # When
      parsing = parser.parse(text)
  
      # Then
      probability = 1.0
      expected_intent = intent_classification_result(
          intent_name="math_operation", probability=probability
      )
      expected_slots = [
          {
              "entity": "snips/number",
              "range": {"end": 11, "start": 8},
              "slotName": "number",
              "value": "one",
          },
          {
              "entity": "snips/number",
              "range": {"end": 20, "start": 17},
              "slotName": "number",
              "value": "one",
          },
      ]
  
      self.assertDictEqual(expected_intent, parsing[RES_INTENT])
      self.assertListEqual(expected_slots, parsing[RES_SLOTS])
  
imports: from __future__ import unicode_literals
  import io
  from copy import deepcopy
  from mock import patch
  from snips_nlu_utils import hash_str
  from snips_nlu.constants import DATA, ENTITY, RES_ENTITY, RES_INTENT, RES_INTENT_NAME, RES_PROBA, RES_SLOTS, RES_VALUE, SLOT_NAME, TEXT, STOP_WORDS
  from snips_nlu.dataset import Dataset
  from snips_nlu.entity_parser import BuiltinEntityParser
  from snips_nlu.exceptions import IntentNotFoundError, NotTrained
  from snips_nlu.intent_parser import LookupIntentParser
  from snips_nlu.intent_parser.lookup_intent_parser import _get_entity_scopes
  from snips_nlu.pipeline.configs import LookupIntentParserConfig
  from snips_nlu.result import empty_result, extraction_result, intent_classification_result, unresolved_slot, parsing_result
  from snips_nlu.tests.utils import FixtureTest, TEST_PATH, EntityParserMock
label_desc: Use image node_id 6 for calling the TestLookupIntentParser obj's underlying member method code with example usage: obj.test_should_parse_intent_with_duplicated_slot_names() without return types