code: def dictlist_to_tsv(dictlist: List[Dict[str, Any]]) -> str:
      
      if not dictlist:
          return ""
      fieldnames = dictlist[0].keys()
      tsv = "\t".join([tsv_escape(f) for f in fieldnames]) + "\n"
      for d in dictlist:
          tsv += "\t".join([tsv_escape(v) for v in d.values()]) + "\n"
      return tsv
docs: From a consistent list of dictionaries mapping fieldnames to values,
      make a TSV file.