[composite compliance] backward: value selecting reduction ops (#76731)
Reference: https://github.com/pytorch/pytorch/issues/69991
Fixes backward composite compliance for value selecting reduction ops like `topk`, `kthvalue`, `min`, `max`, `mode`, `msort`, `median`, `nanmedian`, `nanquantile`, `quantile`, etc
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76731
Approved by: https://github.com/Lezcano, https://github.com/soulitzer