code: def test_verify_logging_message_for_intent_not_used_in_nlu(
      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_intents(ignore_warnings=False)
  
      assert (
          "The intent 'goodbye' is listed in the domain file, "
          "but is not found in the NLU training data."
          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 15 for calling a global function with example usage: test_verify_logging_message_for_intent_not_used_in_nlu(caplog, validator_under_test) without return types