code: def mock_nlg_endpoint() -> MagicMock:
      _mock_nlg_endpoint = MagicMock()
  
      future = asyncio.Future()
      future.set_result({})
  
      _mock_nlg_endpoint.request = MagicMock()
      _mock_nlg_endpoint.request.return_value = future
      return _mock_nlg_endpoint
  
file_path: rasa/tests/integration_tests/core/actions/test_action.py
imports: import asyncio
  from unittest.mock import MagicMock
  import pytest
  from rasa.core.actions.action import ActionBotResponse
  from rasa.core.channels import CollectingOutputChannel
  from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT
  from rasa.core.nlg import CallbackNaturalLanguageGenerator
  from rasa.core.nlg.callback import nlg_request_format
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.trackers import DialogueStateTracker
label_desc: Use image node_id 1 for calling a global function with example usage: mock_nlg_endpoint() and returns: _mock_nlg_endpoint