code: def test_create_endpoint():
      client = get_deploy_client("databricks")
      mock_resp = mock.Mock()
      mock_resp.json.return_value = {"name": "test"}
      mock_resp.status_code = 200
      with mock.patch(
          "requests.Session.request", return_value=mock_resp
      ) as mock_request:
          resp = client.create_endpoint(
              name="test",
              config={
                  "served_entities": [
                      {
                          "name": "test",
                          "external_model": {
                              "name": "gpt-4",
                              "provider": "openai",
                              "openai_config": {
                                  "openai_api_key": "secret",
                              },
                          },
                      }
                  ],
                  "task": "llm/v1/chat",
              },
          )
          mock_request.assert_called_once()
          assert resp == {"name": "test"}
  
file_path: mlflow/tests/deployments/databricks/test_databricks.py
imports: from unittest import mock
  import pytest
  from mlflow.deployments import get_deploy_client
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_endpoint() without return types