docstr: Write the generated project as a .tar.gz archive
  
  Args:
      model (ModelGraph): the hls4ml model.
docstr_tok: ["Write","the","generated","project","as","a",".tar.gz","archive","Args",":","model","(","ModelGraph",")",":","the","hls4ml","model","."]
code: def write_tar(self, model):
      """Write the generated project as a .tar.gz archive
  
      Args:
          model (ModelGraph): the hls4ml model.
      """
  
      with tarfile.open(
          model.config.get_output_dir() + ".tar.gz", mode="w:gz"
      ) as archive:
          archive.add(model.config.get_output_dir(), recursive=True)
  
imports: import glob
  import os
  import tarfile
  from collections import OrderedDict
  from shutil import copyfile, copytree, rmtree
  import numpy
  import yaml
  from hls4ml.writer.writers import Writer
label_desc: Use image node_id 16 for calling the VivadoWriter obj's underlying member method code with example usage: obj.write_tar(model) without return types