I have a bit of code in Jupyter Notebook that creates a multiprocessing.Pool, does some computation with that pool using starmap, then closes the pool.
multiprocessing.Pool
starmap