def METHOD_NAME(fn):
    # only register with the custom target if we manage to import the right
    # structures from numba:
    if dispatcher_registry is None:
        kwargs.update({'cache': True})
    else:
        kwargs.update({'_target': 'custom_cpu', 'cache': True})
        _cached_njit_reg.append(fn)
    return numba.njit(fn, *args, **kwargs)