code: def encode(bc):
      comparator = bc.formatted
  
      suite_name = bc.suite_name
      if suite_name:
          comparator["suite"] = suite_name
  
      return comparator
  
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 BenchmarkComparatorCodec obj's underlying member method code with example usage: obj.encode(bc) and returns: comparator