from VisionCraftAPI import VisionCraftClientfrom VisionCraftAPI.enums import TaskStatusasyncdefmain():# Set your API key api_key ="YOUR_API_KEY"# Create a VisionCraftClient instance client =VisionCraftClient(api_key=api_key)# Get information about a Midjourney task data =await client.get_midjourney_task( task_id=111111111 )if data.Status == TaskStatus.SUCCESS:print('Task is successful!')elif data.Status == TaskStatus.GENERATING:print('Task is still generating...')if__name__=='__main__':import asyncio asyncio.run(main())