code: def dump_result(self, result_dict):
      if self.output_type == "json":
          print(json.dumps(result_dict))
      elif self.output_type == "stdout":
          msg = "{}: {:.2f} us, SOL {:.2f} GB/s, algorithmic {:.2f} GB/s".format(
              result_dict["desc"],
              result_dict["us"],
              result_dict["sol"],
              result_dict["algorithmic"],
          )
          if "compute_workload" in result_dict:
              msg += f", compute {result_dict['compute_workload']:.2f} Gops/s"
          print(msg)
      else:
          raise Exception("Unknown output_type " + self.output_type)
  
imports: import contextlib
  import json
  import os
  import time
  import numpy
  import torch
  from .None import tensor_engine
label_desc: Use image node_id 18 for calling the Benchmark obj's underlying member method code with example usage: obj.dump_result(result_dict) without return types