code: def test_list_endpoints(client: TestClient):
      response = client.get(MLFLOW_DEPLOYMENTS_CRUD_ENDPOINT_BASE)
      assert response.status_code == 200
      assert response.json()["endpoints"] == [
          {
              "name": "completions-gpt4",
              "endpoint_type": "llm/v1/completions",
              "endpoint_url": "/gateway/completions-gpt4/invocations",
              "model": {
                  "name": "gpt-4",
                  "provider": "openai",
              },
          },
          {
              "name": "chat-gpt4",
              "endpoint_type": "llm/v1/chat",
              "endpoint_url": "/gateway/chat-gpt4/invocations",
              "model": {
                  "name": "gpt-4",
                  "provider": "openai",
              },
          },
      ]
  
file_path: mlflow/tests/deployments/server/test_server_app.py
imports: from unittest import mock
  import pytest
  from fastapi.testclient import TestClient
  from mlflow.deployments.server.app import create_app_from_config, create_app_from_env
  from mlflow.deployments.server.constants import MLFLOW_DEPLOYMENTS_CRUD_ENDPOINT_BASE, MLFLOW_DEPLOYMENTS_ENDPOINTS_BASE
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.config import GatewayConfig
  from tests.gateway.tools import MockAsyncResponse
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_endpoints(client) without return types