code: def write_log_file(log_dir, log_filename, data):
      """Helper function to write log file"""
      # data = zip(*data)
      with open(
          os.path.join(log_dir, log_filename), mode="w", newline=""
      ) as csvfile:
          csvwriter = csv.writer(
              csvfile,
              delimiter=" ",
              quotechar="|",
              quoting=csv.QUOTE_MINIMAL,
          )
          for row in data:
              csvwriter.writerow([row])
  
file_path: speechbrain/recipes/DNS/noisyspeech_synthesizer/utils.py
imports: import os
  import csv
  from shutil import copyfile
  import glob
label_desc: Use image node_id 2 for calling a global function with example usage: write_log_file(log_dir, log_filename, data) without return types