code: def write_dict_list_to_csv(dict_list, filepath):
      keys = list(dict_list[0].keys())
  
      with PathManager.open(filepath, "w") as f:
          writer = csv.DictWriter(f, fieldnames=keys)
          writer.writeheader()
  
          for row in dict_list:
              writer.writerow(row)
  
file_path: ParlAI/parlai/tasks/narrative_qa/build.py
imports: import parlai.core.build_data
  import os
  import subprocess
  import shutil
  import csv
  import time
  from parlai.core.build_data import DownloadableFile
  from parlai.utils.io import PathManager
label_desc: Use image node_id 3 for calling a global function with example usage: write_dict_list_to_csv(dict_list, filepath) without return types