code: def test_completions_request():
      completions.RequestPayload(**{"prompt": "prompt"})
      completions.RequestPayload(**{"prompt": ""})
      completions.RequestPayload(
          **{"prompt": "", "extra": "extra", "temperature": 2.0}
      )
  
      with pytest.raises(
          pydantic.ValidationError, match="less than or equal to 2"
      ):
          completions.RequestPayload(
              **{
                  "messages": [{"role": "user", "content": "content"}],
                  "temperature": 3.0,
              }
          )
  
      with pytest.raises(
          pydantic.ValidationError, match=r"(?i)field required"
      ):
          completions.RequestPayload(**{"extra": "extra"})
  
      with pytest.raises(
          pydantic.ValidationError, match=r"(?i)field required"
      ):
          completions.RequestPayload(**{})
  
imports: import time
  import pydantic
  import pytest
  from mlflow.gateway.schemas import completions
label_desc: Use image node_id 1 for calling a global function with example usage: test_completions_request() without return types