code: def get_client():
      if OPENAI_VERSION.startswith("0."):
          raise Exception(
              "Please upgrade your OpenAI package to version >= 1.0.0 or using the command: pip install --upgrade openai."
          )
      return OpenAI(api_key=os.environ["OPENAI_API_KEY"])
  
imports: import os
  from typing import Optional
  from openai import OpenAI
  from openai.version import VERSION
  from promptflow import tool
label_desc: Use image node_id 2 for calling a global function with example usage: get_client() and returns: OpenAI