code: def test_markdown_entity_regex_error_handling_not_json():
      with pytest.raises(InvalidEntityFormatException):
          entities_parser.find_entities_in_training_example(
              # JSON syntax error: missing closing " for `role`
              'I want to fly from [Berlin]{"entity": "city", "role: "from"}'
          )
  
file_path: rasa/tests/shared/nlu/training_data/test_entities_parser.py
imports: from typing import Text, List, Dict, Any
  import pytest
  import rasa.shared.nlu.training_data.entities_parser
  from rasa.shared.exceptions import InvalidEntityFormatException, SchemaValidationError
  from rasa.shared.nlu.constants import TEXT
label_desc: Use image node_id 5 for calling a global function with example usage: test_markdown_entity_regex_error_handling_not_json() without return types