code: public static <T> TrainerAdapter<T, Example<Assignment, Assignment>> createAssignmentAdapter(
        Trainer<T, Example<DynamicAssignment, DynamicAssignment>> trainer) {
      return new TrainerAdapter<T, Example<Assignment, Assignment>>(trainer, new ExampleConverter());
    }
docs: Gets a {@code TrainerAdapter} that transforms
  {@code Example<Assignment, Assignment>} examples to
  {@code Example<DynamicAssignment, DynamicAssignment>}.
  
  @param trainer
  @return