What some people are possibly overlooking here is that the training to a reasonable level is there. The bigger problem is that many who "attend" the training are not so good and are quickly identified as such, it is the high level of corruption allowing these "not very good" people to "obtain" licences at a later date even after failing or being dropped from the training.
It requires more than National regulators in some of these countries to weed it out because they may well be some of the problem. ICAO and/or other worldwide organisations need to legislate and regulate in a much more firmer manner.
Let's face it, how embarrassing would it be for a country's airlines to be completely grounded due to fake licensing/regulation.