code: def test_callback_nlg_fetch_response_id_with_no_response_id(
      caplog: LogCaptureFixture,
  ) -> None:
      # Arrange
      utter_action = "utter_goodbye"
  
      tracker = DialogueStateTracker.from_events(
          sender_id="no_response",
          evts=[UserUttered("Goodbye")],
      )
      output_channel = "default"
      domain = Domain.load("data/test_nlg/domain_with_response_ids.yml")
  
      # Act
      with caplog.at_level(logging.DEBUG):
          response_id = (
              CallbackNaturalLanguageGenerator.fetch_response_id(
                  utter_action=utter_action,
                  tracker=tracker,
                  output_channel=output_channel,
                  domain_responses=domain.responses,
              )
          )
  
      # Assert
      assert response_id is None
      assert (
          f"Failed to fetch response id for action '{utter_action}'."
          in caplog.text
      )
  
file_path: rasa/tests/core/nlg/test_callback.py
imports: import logging
  from pytest import LogCaptureFixture
  from rasa.core.nlg.callback import CallbackNaturalLanguageGenerator, nlg_request_format
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import UserUttered
  from rasa.shared.core.slots import TextSlot
  from rasa.shared.core.trackers import DialogueStateTracker, EventVerbosity
label_desc: Use image node_id 6 for calling a global function with example usage: test_callback_nlg_fetch_response_id_with_no_response_id(caplog) without return types