code: def write_csv(cls, report, add_headers=True):
      with open(f"{report.job.branch}.csv", "w") as csvfile:
          task_writer = csv.writer(csvfile)
          if add_headers:
              task_writer.writerow(report.ROW_HEADERS)
          task_writer.writerows(report.rows)
  
imports: import collections
  import csv
  import operator
  import fnmatch
  import functools
  import time
  import click
  import requests
  from archery.utils.report import JinjaReport
label_desc: Use image node_id 3 for calling the ReportUtils obj's underlying member method code with example usage: obj.write_csv(cls, report, add_headers) without return types