code: def test_synonyms_are_parsed():
      parser = RasaYAMLReader()
      training_data = parser.reads(SYNONYM_EXAMPLE)
  
      assert len(training_data.entity_synonyms) == 2
      assert training_data.entity_synonyms["pink pig"] == "savings"
      assert (
          training_data.entity_synonyms["savings account"] == "savings"
      )
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  import pathlib
  from rasa.shared.exceptions import YamlException, YamlSyntaxException
  import rasa.shared.utils.io
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.shared.nlu.constants import INTENT, METADATA, METADATA_INTENT, METADATA_EXAMPLE
  from rasa.shared.nlu.training_data.formats.rasa_yaml import RasaYAMLReader, RasaYAMLWriter
  from tests.conftest import filter_expected_warnings
label_desc: Use image node_id 11 for calling a global function with example usage: test_synonyms_are_parsed() without return types