Code Execution feature of the Gemini API with the OpenAI Library

How can I use the Code Execution feature of the Gemini API with the OpenAI Library in Python? Please provide step-by-step instructions and a working code example. Additionally, confirm whether Gemini supports plotting graphs (e.g., using Matplotlib) via Code Execution and highlight any limitations or requirements to be aware of.