code: def display_results(name, results):
      logger.info("Encoding benchmark for {}:".format(name))
      data = sorted(
          ((x, y[0]) for x, y in results), key=operator.itemgetter(1)
      )
      print(tabulate(data, floatfmt=".5f"))
  
      logger.info("Decoding benchmark for {}:".format(name))
      data = sorted(
          ((x, y[1]) for x, y in results), key=operator.itemgetter(1)
      )
      print(tabulate(data, floatfmt=".5f"))
  
file_path: tensorpack/tests/benchmark-serializer.py
imports: import numpy
  import argparse
  import pyarrow
  from tabulate import tabulate
  import operator
  from tensorpack.utils import logger
  from tensorpack.utils.serialize import MsgpackSerializer, PyarrowSerializer, PickleSerializer, ForkingPickler
  from tensorpack.utils.timer import Timer
label_desc: Use image node_id 2 for calling a global function with example usage: display_results(name, results) without return types