See context in https://github.com/scikit-learn-contrib/metric-learn/pull/322#issuecomment-919196067.