frommmagic.apisimportMMagicInferencer# create an inferencer!magician=MMagicInferencer(model_name='stable_diffusion')text_prompts='A mecha robot in a favela in expressionist style'result_out_dir='robot.png'magician.infer(text=text_prompts,result_out_dir=result_out_dir)