assert valid arguments for collapse and transform