code: def save(libs: Iterable[Lib]) -> None:
      data = defaultdict(list)
      for lib in libs:
          data[lib.algorithm].append([lib.library, lib.function])
      with LIBRARIES_PATH.open("w", encoding="utf8") as f:
          json.dump(obj=data, fp=f, indent=2, sort_keys=True)
  
file_path: textdistance/textdistance/benchmark.py
imports: from __future__ import annotations
  import json
  import math
  from collections import defaultdict
  from timeit import timeit
  from typing import Iterable, Iterator, NamedTuple
  from tabulate import tabulate
  from .libraries import LIBRARIES_PATH, prototype
label_desc: Use image node_id 6 for calling the Benchmark obj's underlying member method code with example usage: obj.save(libs) without return types