code: def test_validation_errors(invalid_data):
      config = completions_config()
      provider = MlflowModelServingProvider(RouteConfig(**config))
      with pytest.raises(HTTPException, match=r".*") as e:
          provider._process_completions_response_for_mlflow_serving(
              invalid_data
          )
      assert e.value.status_code == 502
      assert "ServingTextResponse\npredictions" in e.value.detail
  
file_path: mlflow/tests/gateway/providers/test_mlflow.py
imports: from unittest import mock
  import pydantic
  import pytest
  from aiohttp import ClientTimeout
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from mlflow.gateway.config import MlflowModelServingConfig, RouteConfig
  from mlflow.gateway.constants import MLFLOW_GATEWAY_ROUTE_TIMEOUT_SECONDS, MLFLOW_SERVING_RESPONSE_KEY
  from mlflow.gateway.providers.mlflow import MlflowModelServingProvider
  from mlflow.gateway.schemas import chat, completions, embeddings
  from tests.gateway.tools import MockAsyncResponse, mock_http_client
label_desc: Use image node_id 3 for calling a global function with example usage: test_validation_errors(invalid_data) without return types