def METHOD_NAME(enabled):
    from neuron import h
    cvode = h.CVode()
    old_setting = cvode.use_fast_imem()
    cvode.use_fast_imem(enabled)
    try:
        yield None
    finally:
        cvode.use_fast_imem(old_setting)