code: def test_predict():
      client = get_deploy_client("databricks")
      mock_resp = mock.Mock()
      mock_resp.json.return_value = {"foo": "bar"}
      mock_resp.status_code = 200
      with mock.patch(
          "requests.Session.request", return_value=mock_resp
      ) as mock_request:
          resp = client.predict(endpoint="test", inputs={})
          mock_request.assert_called_once()
          assert resp == {"foo": "bar"}
  
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 8 for calling a global function with example usage: test_predict() without return types