code: def _check_endpoint_name(name):
      """Checks that the endpoint name is valid by comparing it with an RE and
      checking that it is not reserved."""
      _check_endpoint_type(name)
  
      if not _name_checker.match(name):
          raise ValueError(
              f"endpoint name {name} can only contain: a-z, A-Z, 0-9,"
              " underscore, hyphens and spaces."
          )
  
imports: import copy
  from re import compile
  import time
  import requests
  from .rest import RequestsNetworkWrapper, ServiceClient
  from .rest_client import RESTServiceClient, Endpoint
  from .custom_query_object import CustomQueryObject
  import os
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _check_endpoint_name(name) without return types