python from plan import Plan scheduler = Plan() @scheduler.plan('interval:5s') def task(): print("This is a scheduled task.") scheduler.run()