Image quality assessment for machine learning tasks using meta-reinforcement learning