CEIL: Generalized Contextual Imitation Learning