code: def test_responses_text_multiline_is_preserved():
      responses_yml = textwrap.dedent(
          """
        responses:
          utter_confirm:
          - text: |-
              First line
              Second line
              Third line
          - text: One more response
          utter_cancel:
          - text: First line
          - text: Second line
      """
      )
  
      reader = RasaYAMLReader()
      result = reader.reads(responses_yml)
  
      dumped = RasaYAMLWriter().dumps(result)
  
      validation_reader = RasaYAMLReader()
      dumped_result = validation_reader.reads(dumped)
  
      assert dumped_result.responses == result.responses
  
      # dumping again should also not change the format
      assert dumped == RasaYAMLWriter().dumps(dumped_result)
  
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 23 for calling a global function with example usage: test_responses_text_multiline_is_preserved() without return types