`func` is essentially a singleton. The only way it can change is if someone monkeypatches `numpy.core._dotblas.dot`.
Similar patern as this is also used in a couple of other places in the Numpy codebase.