code: def test_endpoint_config_default_token_name():
      test_data = {"url": "http://test", "token": "token"}
  
      actual = endpoint_utils.EndpointConfig.from_dict(test_data)
  
      assert actual.token_name == "token"
  
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 3 for calling a global function with example usage: test_endpoint_config_default_token_name() without return types