code: def test_verify_logging_message_for_unused_utterance(
      caplog: LogCaptureFixture, validator_under_test: Validator
  ):
      caplog.clear()
      with pytest.warns(UserWarning) as record:
          # force validator to not ignore warnings (default is True)
          validator_under_test.verify_utterances_in_stories(
              ignore_warnings=False
          )
  
      assert (
          "The utterance 'utter_chatter' is not used in any story or rule."
          in (m.message.args[0] for m in record)
      )
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  from _pytest.logging import LogCaptureFixture
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from pathlib import Path
label_desc: Use image node_id 17 for calling a global function with example usage: test_verify_logging_message_for_unused_utterance(caplog, validator_under_test) without return types