code: def test_add_synonyms_from_entities():
      training_example = "I want to fly from Berlin to LA"
  
      entities = [
          {
              "start": 19,
              "end": 25,
              "value": "Berlin",
              "entity": "city",
              "role": "to",
          },
          {
              "start": 29,
              "end": 31,
              "value": "Los Angeles",
              "entity": "city",
              "role": "from",
          },
      ]
  
      result = {}
  
      synonyms_parser.add_synonyms_from_entities(
          training_example, entities, result
      )
  
      assert result == {"LA": "Los Angeles"}
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_add_synonyms_from_entities() without return types