from VisionCraftAPI import VisionCraftClientfrom VisionCraftAPI.exceptions import HTTPErrorasyncdefmain():# Set your API key api_key ="YOUR_API_KEY"# Create a VisionCraftClient instance client =VisionCraftClient(api_key=api_key)# Get information about a Midjourney tasktry: task =await client.get_midjourney_task(task_id=1)print(task.Status)except HTTPError as error:print(error.message)# Prints the error messageprint(error.status_code)# Prints the status codeif__name__=='__main__':import asyncio asyncio.run(main())