Write a Python script that: 1. Accepts an image as input. 2. Uses Optical Character Recognition to extract text from the image using EasyOCR 3. Sends the extracted text to the Mistral AI API to generate code that can create PowerPoint (PPT) slides and a PDF. 4. Receives the code response from Mistral AI and executes it to generate the PPT slides and PDF. 5. Saves the generated files to the local system. Ensure that the script includes: Proper error handling for OCR and API requests. Support for multiple image formats (JPEG, PNG, etc.). A function to execute the received code safely.