code: def test_should_generate_dataset_from_merged_yaml_file(self):
      # Given
      dataset_stream = io.StringIO(
          """
  # whoIsGame Intent
  ---
  type: intent
  name: whoIsGame
  utterances:
    - who is the [role](president) of [country](France)
    - who is the [role](CEO) of [company](Google) please
  
  # getWeather Intent
  ---
  type: intent
  name: getWeather
  utterances:
    - what is the weather in [weatherLocation:location](Paris)?
    - is it raining in [weatherLocation] [weatherDate:snips/datetime]
    
  # Location Entity
  ---
  type: entity
  name: location
  automatically_extensible: true
  values:
  - [new york, big apple]
  - london
          """
      )
  
      # When
      with mock.patch(
          "snips_nlu_parsers.get_builtin_entity_examples",
          return_value=["Today"],
      ):
          dataset = Dataset.from_yaml_files("en", [dataset_stream])
  
      # Then
      validate_and_format_dataset(dataset)
      self.assertDictEqual(EXPECTED_DATASET_DICT, dataset.json)
  
file_path: snips-nlu/snips_nlu/tests/test_dataset_loading.py
imports: from __future__ import unicode_literals
  import io
  from unittest import TestCase
  import mock
  from snips_nlu.dataset import Dataset, validate_and_format_dataset
label_desc: Use image node_id 2 for calling the TestDatasetLoading obj's underlying member method code with example usage: obj.test_should_generate_dataset_from_merged_yaml_file() without return types