def pool(n=None, dummy=False):
if dummy:<EOL><INDENT>from multiprocessing.dummy import Pool<EOL><DEDENT>else:<EOL><INDENT>from multiprocessing import Pool<EOL><DEDENT>if n is None:<EOL><INDENT>import multiprocessing<EOL>n = multiprocessing.cpu_count() - <NUM_LIT:1><EOL><DEDENT>return Pool(n)<EOL>
create a multiprocessing pool that responds to interrupts.