code: def mock_openai_connection():
      conn_id = "openai_conn"
      conn = Connection(
          conn_id=conn_id,
          conn_type="openai",
      )
      os.environ[
          f"AIRFLOW_CONN_{conn.conn_id.upper()}"
      ] = conn.get_uri()
      yield conn
  
file_path: airflow/tests/providers/openai/hooks/test_openai.py
imports: from __future__ import annotations
  import os
  from unittest.mock import patch
  import pytest
  from openai.types import CreateEmbeddingResponse, Embedding
  from airflow.models import Connection
  from airflow.providers.openai.hooks.openai import OpenAIHook
label_desc: Use image node_id 1 for calling a global function with example usage: mock_openai_connection() without return types