code: def test_embeddings_response():
      embeddings.ResponsePayload(
          **{
              "object": "list",
              "data": [
                  {
                      "object": "embedding",
                      "embedding": [0.01, -0.1],
                      "index": 0,
                  }
              ],
              "model": "sentence-piece",
              "usage": {"prompt_tokens": None, "total_tokens": None},
          }
      )
  
      embeddings.ResponsePayload(
          **{
              "object": "list",
              "data": [
                  {
                      "object": "embedding",
                      "embedding": [0.01, -0.1],
                      "index": 0,
                  },
                  {
                      "object": "embedding",
                      "embedding": [0.03, -0.03],
                      "index": 1,
                  },
              ],
              "model": "sentence-piece",
              "usage": {"prompt_tokens": 1, "total_tokens": 1},
          }
      )
  
      with pytest.raises(
          pydantic.ValidationError, match=r"(?i)field required"
      ):
          embeddings.ResponsePayload(**{"usage": {}})
  
imports: import pydantic
  import pytest
  from mlflow.gateway.schemas import embeddings
label_desc: Use image node_id 2 for calling a global function with example usage: test_embeddings_response() without return types