nodes: 0, module; 1, function_definition; 2, function_name:display_results; 3, parameters; 4, block; 5, identifier:results; 6, default_parameter; 7, expression_statement; 8, comment:# print("\nVALIDATOR RESULTS"); 9, comment:# print("======================\n"); 10, if_statement; 11, for_statement; 12, return_statement; 13, identifier:detailed; 14, False; 15, comment:"""
      Display the results from the validator in a brief or detailed output
  
      :param list results: API results, sorted by dataset name (multiple)
      :param bool detailed: Detailed results on or off
      :return none:
      """; 16, not_operator; 17, block; 18, identifier:entry; 19, identifier:results; 20, block; 21, identifier:detailed; 22, expression_statement; 23, try_statement; 24, call; 25, block; 26, except_clause; 27, identifier:print; 28, argument_list; 29, if_statement; 30, as_pattern; 31, block; 32, string; 33, identifier:detailed; 34, block; 35, else_clause; 36, identifier:Exception; 37, as_pattern_target; 38, expression_statement; 39, expression_statement; 40, string_content:FILENAME......................................... STATUS..........; 41, expression_statement; 42, expression_statement; 43, block; 44, identifier:e; 45, call; 46, call; 47, call; 48, call; 49, expression_statement; 50, attribute; 51, argument_list; 52, identifier:print; 53, argument_list; 54, identifier:print; 55, argument_list; 56, identifier:print; 57, argument_list; 58, call; 59, identifier:logger_validator_api; 60, identifier:debug; 61, call; 62, call; 63, call; 64, call; 65, identifier:print; 66, argument_list; 67, attribute; 68, argument_list; 69, attribute; 70, argument_list; 71, attribute; 72, argument_list; 73, identifier:create_detailed_results; 74, argument_list; 75, call; 76, string:"display_results: Exception: {}"; 77, identifier:format; 78, identifier:e; 79, string:"Error: display_results: {}"; 80, identifier:format; 81, identifier:e; 82, string:"\n{}"; 83, identifier:format; 84, subscript; 85, identifier:entry; 86, attribute; 87, argument_list; 88, identifier:entry; 89, string:"filename"; 90, string:"{:<50}{}"; 91, identifier:format; 92, subscript; 93, subscript; 94, identifier:entry; 95, string:"filename"; 96, identifier:entry; 97, string:"status"
code: def display_results(results, detailed=False):
      """
      Display the results from the validator in a brief or detailed output
  
      :param list results: API results, sorted by dataset name (multiple)
      :param bool detailed: Detailed results on or off
      :return none:
      """
      # print("\nVALIDATOR RESULTS")
      # print("======================\n")
  
      if not detailed:
          print('FILENAME......................................... STATUS..........')
  
      for entry in results:
          try:
              if detailed:
                  print("\n{}".format(entry["filename"]))
                  print(create_detailed_results(entry))
              else:
                  print("{:<50}{}".format(entry["filename"], entry["status"]))
          except Exception as e:
              logger_validator_api.debug("display_results: Exception: {}".format(e))
              print("Error: display_results: {}".format(e))
  
      return