Toggle @pytorch.jit.script decorator on / off

Hello,

is there a way to toggle the toggle @pytorch.jit.script decorator on / off, like:

use_jit = True / False
@torch.jit.script(enable=use_jit)
def function(x)
    pass

Thanks!