code: def test_download_all_lta(
      api, tmpdir, smallest_online_products, smallest_archived_products
  ):
      archived_ids = [x["id"] for x in smallest_archived_products]
      online_ids = [x["id"] for x in smallest_online_products]
      ids = archived_ids[:1] + online_ids[:2]
      product_infos, triggered, failed_downloads = api.download_all(
          ids, str(tmpdir), max_attempts=1, n_concurrent_dl=1
      )
      exceptions = {
          k: v["exception"] for k, v in failed_downloads.items()
      }
      assert len(failed_downloads) == 0, exceptions
      assert len(triggered) == 1
      assert len(product_infos) == len(ids) - len(
          failed_downloads
      ) - len(triggered)
      assert all(x["Online"] is False for x in triggered.values())
  
      # test downloaded products
      for product_id, product_info in product_infos.items():
          pypath = py.path.local(product_info["path"])
          assert pypath.check(exists=1, file=1)
          assert pypath.purebasename in product_info["title"]
          assert pypath.size() == product_info["size"]
  
      tmpdir.remove()
  
imports: import os
  import shutil
  import py.path
  import pytest
  import requests_mock
  from flaky import flaky
  from sentinelsat import SentinelAPI, make_path_filter
  from sentinelsat.exceptions import InvalidChecksumError, InvalidKeyError, LTAError, ServerError
label_desc: Use image node_id 8 for calling a global function with example usage: test_download_all_lta(api, tmpdir, smallest_online_products, smallest_archived_products) without return types