code: def mock_openai_creds(monkeypatch):
      monkeypatch.setenv("OPENAI_API_KEY", "my-secret-key")
  
file_path: mlflow/tests/deployments/openai/test_openai.py
imports: from unittest import mock
  import pytest
  from mlflow.deployments import get_deploy_client
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 1 for calling a global function with example usage: mock_openai_creds(monkeypatch) without return types