code: def get_total_and_passed(results):
      total_failed = 0
      total_errored = 0
      total_passed = 0
      for module_name, row in results.items():
          total_failed += row.get("failed", 0)
          total_errored += row.get("errored", 0)
          total_passed += row.get("passed", 0)
      total_tests = total_failed + total_errored + total_passed
      return total_tests, total_passed
  
imports: import json
  import sys
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: get_total_and_passed(results) and returns: total_tests,  total_passed