code: def encode(b):
      return {
          "name": b.name,
          "unit": b.unit,
          "less_is_better": b.less_is_better,
          "values": b.values,
          "time_unit": b.time_unit,
          "times": b.times,
          "counters": b.counters,
      }
  
file_path: arrow/dev/archery/archery/benchmark/codec.py
imports: import json
  from ..benchmark.core import Benchmark, BenchmarkSuite
  from ..benchmark.runner import BenchmarkRunner, StaticBenchmarkRunner
  from ..benchmark.compare import BenchmarkComparator
label_desc: Use image node_id 1 for calling the BenchmarkCodec obj's underlying member method code with example usage: obj.encode(b) and returns: dict