code: def test_synonym_alternate_case(
      default_model_storage: ModelStorage,
      default_execution_context: ExecutionContext,
  ):
      resource = Resource("xy")
      mapper = EntitySynonymMapper.create(
          {}, default_model_storage, resource, default_execution_context
      )
  
      examples = [
          Message(
              data={
                  TEXT: "What's the weather in austria?",
                  "intent": "whats_weather",
                  "entities": [
                      {
                          "start": 22,
                          "end": 29,
                          "value": "austria",
                          "entity": "GPE",
                      }
                  ],
              }
          ),
          Message(
              data={
                  TEXT: "weather vienna?",
                  "intent": "whats_weather",
                  "entities": [
                      {
                          "start": 8,
                          "end": 14,
                          "value": "austria",
                          "entity": "GPE",
                      }
                  ],
              }
          ),
      ]
      entities = [
          {"entity": "test", "value": "austria", "start": 0, "end": 7},
          {"entity": "test", "value": "Austria", "start": 0, "end": 7},
          {"entity": "test", "value": "AUSTRIA", "start": 0, "end": 7},
          {"entity": "test", "value": "ausTRIA", "start": 0, "end": 7},
          {"entity": "test", "value": "Vienna", "start": 0, "end": 7},
          {"entity": "test", "value": "brazil", "start": 0, "end": 7},
      ]
  
      mapper.train(TrainingData(training_examples=examples))
      mapper.replace_synonyms(entities)
      expected_synonym_value = "austria"
  
      # synonym key for example value is present
      assert mapper.synonyms.get("vienna") == expected_synonym_value
  
      # synonym key for self is present
      assert mapper.synonyms.get("austria") == expected_synonym_value
  
      # all replacement values are correct
      assert entities[0]["value"] == expected_synonym_value
      assert entities[1]["value"] == expected_synonym_value
      assert entities[2]["value"] == expected_synonym_value
      assert entities[3]["value"] == expected_synonym_value
      assert entities[4]["value"] == expected_synonym_value
      assert entities[5]["value"] != expected_synonym_value
  
file_path: rasa/tests/nlu/extractors/test_entity_synonyms.py
imports: from rasa.nlu.extractors.entity_synonyms import EntitySynonymMapper
  from rasa.shared.nlu.constants import TEXT, ENTITIES
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.graph import ExecutionContext
  from rasa.engine.storage.resource import Resource
label_desc: Use image node_id 4 for calling a global function with example usage: test_synonym_alternate_case(default_model_storage, default_execution_context) without return types