code: def encode(bs):
      return {
          "name": bs.name,
          "benchmarks": [
              BenchmarkCodec.encode(b) for b in bs.benchmarks
          ],
      }
  
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 BenchmarkSuiteCodec obj's underlying member method code with example usage: obj.encode(bs) and returns: dict