Associate Latent Encodings in Learning from Demonstrations