code: def test_get_endpoint_openai(mock_openai_creds):
      client = get_deploy_client("openai")
  
      mock_response = mock.Mock()
      mock_response.status_code = 200
      mock_response.json.return_value = {
          "id": "gpt-3.5-turbo-instruct",
          "object": "model",
          "created": 1686935002,
          "owned_by": "openai",
      }
  
      with mock.patch(
          "requests.get",
          return_value=mock_response,
      ) as mock_request:
          resp = client.get_endpoint("gpt-3.5-turbo-instruct")
          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 8 for calling a global function with example usage: test_get_endpoint_openai(mock_openai_creds) without return types