def METHOD_NAME(fn, *args):
    import multiprocessing as mp
    mp.set_start_method("spawn", force=True)
    q = mp.Queue()
    p = mp.Process(target=target, args=(q, fn, *args))
    p.start()
    retval = q.get()
    p.join()
    return retval