code: def test_invalid_openai_configs_throw_on_construction(
      api_type,
      api_base,
      deployment_name,
      api_version,
      organization,
  ):
      with pytest.raises(MlflowException, match="OpenAI"):
          OpenAIConfig(
              openai_api_key="mock-api-key",
              openai_api_type=api_type,
              openai_api_base=api_base,
              openai_deployment_name=deployment_name,
              openai_api_version=api_version,
              openai_organization=organization,
          )
  
file_path: mlflow/tests/gateway/providers/test_openai.py
imports: from unittest import mock
  import pytest
  from aiohttp import ClientTimeout
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from pydantic import ValidationError
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.config import OpenAIConfig, RouteConfig
  from mlflow.gateway.constants import MLFLOW_GATEWAY_ROUTE_TIMEOUT_SECONDS
  from mlflow.gateway.providers.openai import OpenAIProvider
  from mlflow.gateway.schemas import chat, completions, embeddings
  from tests.gateway.tools import MockAsyncResponse, mock_http_client
label_desc: Use image node_id 7 for calling a global function with example usage: test_invalid_openai_configs_throw_on_construction(api_type, api_base, deployment_name, api_version, organization) without return types