call this `check_sample_weight_invariance`