There is some evidence that testosterone is beneficial for men with T2 diabetes especially I think for those taking metformin as metformin can reduce testosterone levels.
https://www.medicalnewstoday.com/articles/303291
"
Researchers have established a link between testosterone, type 2 diabetes, obesity and renal failure, leading them to ask if testosterone could be a metabolic hormone.
Men with type 2 diabetes and low testosterone levels can benefit significantly from testosterone treatment, according to a study published in Diabetes Care.
With testosterone treatment, fat turned to muscle in men with diabetes.
Senior author Dr. Paresh Dandona, of the Department of Medicine in the Jacobs School of Medicine and Biomedical Sciences at the University of Buffalo (UB), NY, and his coauthors already knew that low testosterone levels coincide with significantly decreased insulin sensitivity."