code: def write_results(results_file, results):
      with open(results_file, mode="w") as cf:
          dw = csv.DictWriter(cf, fieldnames=results[0].keys())
          dw.writeheader()
          for r in results:
              dw.writerow(r)
          cf.flush()
  
file_path: pytorch-image-models/bulk_runner.py
imports: import argparse
  import os
  import sys
  import csv
  import json
  import subprocess
  import time
  from typing import Callable, List, Tuple, Union
  from timm.models import is_model, list_models, get_pretrained_cfg
label_desc: Use image node_id 3 for calling a global function with example usage: write_results(results_file, results) without return types