def METHOD_NAME(process_count, function, *args):
    results = []
    with multiprocessing.pool.Pool(process_count) as p:
        for i in range(process_count):
            results.append(p.apply_async(function, args))
        p.close()
        p.join()
    actual_results = []
    for result in results:
        assert result.ready()
        actual_results.append(result.get())
    return actual_results