Support for NumPy functions exposed via the root SciPy namespace is deprecated
and will be removed in 2.0.0. For example, if you use scipy.rand or
scipy.diag, you should change your code to directly use
numpy.random.default_rng or numpy.diag, respectively.
They remain available in the currently continuing Scipy 1.x release series.
According to https://github.com/scipy/scipy/releases