code: def _check_endpoint_type(name):
      if not isinstance(name, str):
          raise TypeError("Endpoint name must be a string")
  
      if name == "":
          raise ValueError("Endpoint name cannot be empty")
  
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 1 for calling a global function with example usage: _check_endpoint_type(name) without return types