code: def test_list_endpoints_openai(mock_openai_creds):
      client = get_deploy_client("openai")
  
      mock_response = mock.Mock()
      mock_response.status_code = 200
      mock_response.json.return_value = {
          "object": "list",
          "data": [
              {
                  "id": "model-id-0",
                  "object": "model",
                  "created": 1686935002,
                  "owned_by": "organization-owner",
              },
              {
                  "id": "model-id-1",
                  "object": "model",
                  "created": 1686935002,
                  "owned_by": "organization-owner",
              },
              {
                  "id": "model-id-2",
                  "object": "model",
                  "created": 1686935002,
                  "owned_by": "openai",
              },
          ],
      }
  
      with mock.patch(
          "requests.get",
          return_value=mock_response,
      ) as mock_request:
          resp = client.list_endpoints()
          mock_request.assert_called_once()
          assert resp == mock_response.json.return_value
  
file_path: mlflow/tests/deployments/openai/test_openai.py
imports: from unittest import mock
  import pytest
  from mlflow.deployments import get_deploy_client
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_endpoints_openai(mock_openai_creds) without return types