code: def sort_results(results):
      sorted_keys = sorted(
          results, key=lambda key: results[key].get("failed", 0)
      )
      return {key: results[key] for key in sorted_keys}
  
imports: import argparse
  import json
  from rich.console import Console
  from rich.table import Table
label_desc: Use image node_id 2 for calling a global function with example usage: sort_results(results) and returns: unknown