code: def build_archive_file(archive_contents, zip_file):
      
  
      # This is tested against Desktop and Server, and reverse engineered by lots
      # of trial and error. Do not change this logic.
      for root_dir, _, files in os.walk(archive_contents):
          relative_dir = os.path.relpath(root_dir, archive_contents)
          for f in files:
              temp_file_full_path = os.path.join(
                  archive_contents, relative_dir, f)
              zipname = os.path.join(relative_dir, f)
              zip_file.write(temp_file_full_path, arcname=zipname)
docs: Build a Tableau-compatible archive file.