def shutdown_consumers(num_workers=<NUM_LIT:2>,<EOL>tasks=None,<EOL>shutdown_msg="<STR_LIT>"):
if tasks:<EOL><INDENT>for i in range(num_workers):<EOL><INDENT>tasks.put(shutdown_msg)<EOL><DEDENT><DEDENT>
shutdown_consumers

    :param num_workers:
    :param tasks:
    :param shutdown_msg: