code: def test_markdown_entity_regex(
      example: Text,
      expected_entities: List[Dict[Text, Any]],
      expected_text: Text,
  ):
      result = entities_parser.find_entities_in_training_example(
          example
      )
      assert result == expected_entities
  
      replaced_text = entities_parser.replace_entities(example)
      assert replaced_text == expected_text
  
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 1 for calling a global function with example usage: test_markdown_entity_regex(example, expected_entities, expected_text) without return types