Adds sample weight to check_consistent_length