code: def test_nlg_endpoint_config_loading(endpoints_path: Text):
      cfg = read_endpoint_config(endpoints_path, "nlg")
  
      assert cfg == EndpointConfig.from_dict(
          {"url": "http://localhost:5055/nlg"}
      )
  
imports: import uuid
  from typing import Text, Any
  import jsonschema
  import pytest
  from sanic import Sanic, response
  from rasa.core.nlg.callback import CallbackNaturalLanguageGenerator
  from rasa.core.nlg.response import TemplatedNaturalLanguageGenerator
  from rasa.utils.endpoints import EndpointConfig, read_endpoint_config
  from rasa.core.agent import Agent
label_desc: Use image node_id 3 for calling a global function with example usage: test_nlg_endpoint_config_loading(endpoints_path) without return types