code: def _prepare_op_benchmark_result(op, op_bench_result, profiler):
      operator_name = op
      avg_forward_time = "---"
      avg_backward_time = "---"
      max_mem_usage = "---"
      inputs = "---"
      avg_time = "---"
      p50_time = "---"
      p90_time = "---"
      p99_time = "---"
  
      for key, value in op_bench_result.items():
          if "avg_time_forward" in key:
              avg_forward_time = value
          elif "avg_time_backward" in key:
              avg_backward_time = value
          elif "max_storage_mem_alloc_" in key:
              max_mem_usage = value
          elif "inputs" in key:
              inputs = value
          elif "avg_time" in key:
              avg_time = value
          elif "p50_time" in key:
              p50_time = value
          elif "p90_time" in key:
              p90_time = value
          elif "p99_time" in key:
              p99_time = value
  
      result = ""
      if profiler == "native":
          result = f"| {operator_name} | {inputs} | {max_mem_usage} | {avg_forward_time} | {avg_backward_time} |"
      elif profiler == "python":
          result = f"| {operator_name} | {avg_time} | {p50_time} | {p90_time} | {p99_time} | {inputs} |"
      return result
  
file_path: mxnet/benchmark/opperf/utils/common_utils.py
imports: import os
  import json
  from operator import itemgetter
  import logging
label_desc: Use image node_id 4 for calling a global function with example usage: _prepare_op_benchmark_result(op, op_bench_result, profiler) and returns: result