It worked before and then got the error since I updated some packages. I seems there is no argument return_other_dimreds for function get_dimred in package dynwrap.
The command I used:
error:
Error in get_dimred(dataset = trajectory, dimred = dimred, expression_source = expression_source, :
unused argument (return_other_dimreds = TRUE)