<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def empty(rq, ctx, all, queues):
    "Empty given queues."
    return ctx.invoke(
        rq_cli.empty,
        all=all,
        queues=queues or rq.queues,
        **shared_options(rq)
    )