code: def test_read_endpoint_config(filename: Text, endpoint_type: Text):
      conf = endpoint_utils.read_endpoint_config(
          filename, endpoint_type
      )
      assert isinstance(conf, endpoint_utils.EndpointConfig)
  
file_path: rasa/tests/utils/test_endpoints.py
imports: import logging
  from pathlib import Path
  from typing import Text, Optional, Union
  from unittest.mock import Mock
  import pytest
  from aioresponses import aioresponses
  from rasa.shared.exceptions import FileNotFoundException
  from tests.utilities import latest_request, json_of_latest_request
  import rasa.utils.endpoints
label_desc: Use image node_id 5 for calling a global function with example usage: test_read_endpoint_config(filename, endpoint_type) without return types