[algorithms][is_valid] print multi-index as well