code: def write_benchmark_records(records, path):
      """Write benchmark records to file at path"""
      with open(path, "wt") as f:
          print_benchmark_records(records, f)
  
imports: import contextlib
  import datetime
  from itertools import chain
  import os
  import time
  import threading
  from snakemake.logging import logger
label_desc: Use image node_id 3 for calling a global function with example usage: write_benchmark_records(records, path) without return types