I gather that this is not the first function in scikit-learn starting with 'check_' that returns the modified input :-)