code: def test_palm_embeddings(gateway):
      client = MlflowGatewayClient(gateway_uri=gateway.url)
      route = client.get_route("embeddings-palm")
      expected_output = {
          "object": "list",
          "data": [
              {
                  "object": "embedding",
                  "embedding": [
                      0.1,
                      0.2,
                      0.3,
                  ],
                  "index": 0,
              }
          ],
          "model": "embedding-gecko-001",
          "usage": {"prompt_tokens": None, "total_tokens": None},
      }
  
      data = {"input": "mock me and my test"}
  
      async def mock_embeddings(self, payload):
          return expected_output
  
      with patch.object(PaLMProvider, "embeddings", mock_embeddings):
          response = client.query(route=route.name, data=data)
      assert response == expected_output
  
imports: import os
  from unittest.mock import patch
  import pytest
  import requests
  import mlflow
  import mlflow.gateway.utils
  from mlflow.exceptions import MlflowException
  from mlflow.gateway import MlflowGatewayClient, get_route, query, set_gateway_uri
  from mlflow.gateway.config import Route
  from mlflow.gateway.providers.ai21labs import AI21LabsProvider
  from mlflow.gateway.providers.anthropic import AnthropicProvider
  from mlflow.gateway.providers.bedrock import AWSBedrockProvider
  from mlflow.gateway.providers.cohere import CohereProvider
  from mlflow.gateway.providers.huggingface import HFTextGenerationInferenceServerProvider
  from mlflow.gateway.providers.mlflow import MlflowModelServingProvider
  from mlflow.gateway.providers.mosaicml import MosaicMLProvider
  from mlflow.gateway.providers.openai import OpenAIProvider
  from mlflow.gateway.providers.palm import PaLMProvider
  from mlflow.utils.request_utils import _cached_get_request_session
  from tests.gateway.tools import UvicornGateway, log_completions_transformers_model, log_sentence_transformers_model, save_yaml, start_mlflow_server, stop_mlflow_server
label_desc: Use image node_id 20 for calling a global function with example usage: test_palm_embeddings(gateway) and returns: expected_output