What does this error mean? IncorrectArgumentsError: Should not specify both keep_size and samples arguments. See the docstring of the samples argument for more details

ok. I figured it out looking at the source code.
The keep_size argument by default == True, so setting it to False works. I think the example in the tutorial should be updated.