Semenya will likely keep her medal as her gender is a medical issue and not a deliberate attempt at doping.
However, Semenya's internal testes are producing large amounts of testosterone, giving her a physical advantage over other female runners.
The controversy surrounding Semenya is just one among many gender verification disputes in professional sports.