Do whatever is necessary to try to prevent implicit threading.
Notes
Explicitly limits the number of threads allowed to be used by numexpr and attempts to limit the number of threads in all APIs supported by the threadpoolctl package.
numexpr
threadpoolctl
disable_implicit_threading()