Cordyceps: Are the Benefits Real?

Cordyceps is purported to hold a variety of therapeutic benefits. It is most popular for its reported ability to enhance energy and physical endurance, and improve sexual function and libido. Are these claims backed by scientific evidence? Also, is cordyceps safe? Are there any dangers to consuming Cordyceps?