code: def compare(base, target):
      def natural_sort(l):
          def alphanum_key(key):
              def convert(text):
                  return int(text) if text.isdigit() else text.lower()
  
              return [convert(c) for c in re.split("([0-9]+)", key)]
  
          return sorted(l, key=alphanum_key)
  
      print(
          "algo\tsearch_elapsed_seconds(negative values are better)\taccuracy(positive values are better)"
      )
      for key in natural_sort(target.keys()):
          if key in base:
              print(
                  "%s\t%s"
                  % (
                      key,
                      "\t".join(
                          str(round((z[0] - z[1]) * 100 / z[1], 2))
                          + " %"
                          for z in zip(target[key], base[key])
                      ),
                  )
              )
  
imports: import os
  import re
  import argparse
  from collections import defaultdict
label_desc: Use image node_id 2 for calling a global function with example usage: compare(base, target) and returns: sorted, unknown, unknown