code: def test_from_yaml_file_with_defaults(self):
      # Given
      entity = Entity.from_yaml(
          io.StringIO(
              """
  # Location Entity
  ---
  name: location
  values:
  - [new york, big apple]
  - [paris, city of lights]
  - london
          """
          )
      )
  
      # When
      entity_dict = entity.json
  
      # Then
      expected_entity_dict = {
          "automatically_extensible": True,
          "data": [
              {"synonyms": ["big apple"], "value": "new york"},
              {"synonyms": ["city of lights"], "value": "paris"},
              {"synonyms": [], "value": "london"},
          ],
          "use_synonyms": True,
          "matching_strictness": 1.0,
      }
      self.assertDictEqual(expected_entity_dict, entity_dict)
  
file_path: snips-nlu/snips_nlu/tests/test_entity_loading.py
imports: from __future__ import unicode_literals
  import io
  from unittest import TestCase
  from snips_nlu.dataset import Entity
  from snips_nlu.exceptions import EntityFormatError
label_desc: Use image node_id 2 for calling the TestEntityLoading obj's underlying member method code with example usage: obj.test_from_yaml_file_with_defaults() without return types