code: def test_fail_from_yaml_file_when_no_name(self):
      # Given
      entity_io = io.StringIO(
          """
  # Location Entity
  ---
  values:
  - [new york, big apple]
  - [paris, city of lights]
  - london
          """
      )
  
      # When / Then
      with self.assertRaises(EntityFormatError):
          Entity.from_yaml(entity_io)
  
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 4 for calling the TestEntityLoading obj's underlying member method code with example usage: obj.test_fail_from_yaml_file_when_no_name() without return types