Robust Estimation for Non-parametric Families via Generative Adversarial Networks