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