code: def test_client_query_anthropic_completions(mixed_gateway):
      gateway_client = MlflowGatewayClient(
          gateway_uri=mixed_gateway.url
      )
  
      route = gateway_client.get_route(name="completions")
      assert route.model.provider == "anthropic"
  
      expected_output = {
          "id": None,
          "object": "text_completion",
          "created": 1677858242,
          "model": "claude-instant-1.1",
          "choices": [
              {
                  "text": "Here are the steps for making a peanut butter sandwich:\n\n1. Get bread. "
                  "\n\n2. Spread peanut butter on bread.",
                  "index": 0,
                  "finish_reason": "length",
              }
          ],
          "usage": {
              "prompt_tokens": None,
              "completion_tokens": None,
              "total_tokens": None,
          },
      }
      data = {
          "prompt": "Can you tell me how to make a peanut butter sandwich?",
          "max_tokens": 500,
      }
  
      mock_response = mock.Mock()
      mock_response.json.return_value = expected_output
  
      with mock.patch.object(
          gateway_client, "_call_endpoint", return_value=mock_response
      ):
          response = gateway_client.query(route=route.name, data=data)
          assert response == expected_output
  
imports: from unittest import mock
  import pytest
  from requests.exceptions import HTTPError, Timeout
  import mlflow.gateway.utils
  from mlflow.environment_variables import MLFLOW_GATEWAY_URI
  from mlflow.exceptions import InvalidUrlException, MlflowException
  from mlflow.gateway import MlflowGatewayClient, set_gateway_uri
  from mlflow.gateway.config import Route
  from mlflow.gateway.constants import MLFLOW_GATEWAY_SEARCH_ROUTES_PAGE_SIZE
  from mlflow.gateway.utils import resolve_route_url
  from tests.gateway.tools import Gateway, save_yaml
label_desc: Use image node_id 27 for calling a global function with example usage: test_client_query_anthropic_completions(mixed_gateway) without return types