code: def test_is_valid_endpoint_name(name, expected):
      assert is_valid_endpoint_name(name) == expected
  
file_path: mlflow/tests/gateway/test_utils.py
imports: import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.utils import SearchRoutesToken, _is_valid_uri, assemble_uri_path, check_configuration_route_name_collisions, get_gateway_uri, is_valid_endpoint_name, resolve_route_url, set_gateway_uri
label_desc: Use image node_id 3 for calling a global function with example usage: test_is_valid_endpoint_name(name, expected) without return types