code: def test_read_endpoint_config_with_cafile(
      endpoint_type: Text, cafile: Optional[Text]
  ):
      conf = endpoint_utils.read_endpoint_config(
          "data/test_endpoints/example_endpoints.yml", endpoint_type
      )
      assert conf.cafile == cafile
  
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 6 for calling a global function with example usage: test_read_endpoint_config_with_cafile(endpoint_type, cafile) without return types