npbrain\tools\functions.py numba.core.dispatcher is not available to my numba package. So I changed it to numba.dispatcher and then it worked.