code: def test_check_invalid_endpoint_name(self):
      endpoint_name = "Invalid:model:@name"
      with self.assertRaises(ValueError) as err:
          _check_endpoint_name(endpoint_name)
  
      self.assertEqual(
          err.exception.args[0],
          f"endpoint name {endpoint_name } can only contain: "
          "a-z, A-Z, 0-9, underscore, hyphens and spaces.",
      )
  
file_path: TabPy/tests/unit/tools_tests/test_client.py
imports: import unittest
  from unittest.mock import Mock
  from tabpy.tabpy_tools.client import Client
  from tabpy.tabpy_tools.client import _check_endpoint_name
label_desc: Use image node_id 9 for calling the TestClient obj's underlying member method code with example usage: obj.test_check_invalid_endpoint_name() without return types