code: def test_intent_examples_multiline_consistency(
      tmp_path: pathlib.Path,
  ):
      """Test that multiline examples are written back as multiline examples."""
  
      training_data_file = (
          pathlib.Path("data")
          / "test_multiline_intent_examples_yaml"
          / "nlu.yml"
      )
      training_data_from_disc = RasaYAMLReader().read(
          filename=training_data_file
      )
  
      tmp_file = tmp_path / "nlu.yml"
      RasaYAMLWriter().dump(tmp_file, training_data_from_disc)
      rewritten_file_content = tmp_file.read_text(encoding="utf-8")
      original_file_content = training_data_file.read_text(
          encoding="utf-8"
      )
  
      assert original_file_content == rewritten_file_content
  
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 24 for calling a global function with example usage: test_intent_examples_multiline_consistency(tmp_path) without return types