code: def list_to_archive(sequence, archive_format="gztar", content=""):
      """Transform a list of paths to an archive.
  
      This invokes dict_to_archive with the `sequence` items as keys and
      `content` (by default '') as values.
  
      For example, if `sequence` is
      `["README.txt", Path("Data") / "labels.csv"]`,
      the resulting archive has this structure:
          .
          ├── Data
          │   └── labels.csv
          └── README.txt
  
      and "labels.csv" and "README.txt" contain the value of `content`.
  
      """
      return dict_to_archive(
          {item: content for item in sequence},
          archive_format=archive_format,
      )
  
imports: import fnmatch
  import json
  import os
  import pickle
  import re
  import shutil
  import tempfile
  from collections import OrderedDict
  from pathlib import Path
  from unittest.mock import MagicMock
  import pytest
  from requests.exceptions import HTTPError
  from nilearn._utils.testing import serialize_niimg
label_desc: Use image node_id 8 for calling a global function with example usage: list_to_archive(sequence, archive_format, content) and returns: dict_to_archive