def METHOD_NAME():
    """
    Helper for tests to get a ParallelContext instance that cleans up after itself.
    """
    from neuron import h
    pc = h.ParallelContext()
    try:
        yield pc
    finally:
        pc.gid_clear()