code: def check_list_errors(self, checkFunc, lst):
          
          # check for errors on each subitem, filter only subitems with errors
          results = (checkFunc(i) for i in lst)
          return [err for err in results if err]
docs: Validation helper function.