Mediated Uncoupled Learning: Learning Functions without Direct Input-output Correspondences