code: def test_openai_provider_can_be_constructed_with_valid_configs(
      api_type,
      api_base,
      deployment_name,
      api_version,
      organization,
  ):
      openai_config = 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,
      )
      route_config = RouteConfig(
          name="completions",
          route_type="llm/v1/completions",
          model={
              "provider": "openai",
              "name": "text-davinci-003",
              "config": dict(openai_config),
          },
      )
      provider = OpenAIProvider(route_config)
      assert provider.openai_config == openai_config
  
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 6 for calling a global function with example usage: test_openai_provider_can_be_constructed_with_valid_configs(api_type, api_base, deployment_name, api_version, organization) without return types