code: def test_download_all_quicklooks_one_fail(
      api, tmpdir, quicklook_products
  ):
      ids = [product["id"] for product in quicklook_products]
  
      # Force one download to fail
      id = ids[0]
      with requests_mock.mock(real_http=True) as rqst:
          url = f"https://apihub.copernicus.eu/apihub/odata/v1/Products('{id}')/Products('Quicklook')/$value"
          headers = api.session.get(url).headers
          headers["content-type"] = "image/xxxx"
          rqst.get(url, headers=headers)
          (
              downloaded_quicklooks,
              failed_quicklooks,
          ) = api.download_all_quicklooks(
              ids, str(tmpdir), n_concurrent_dl=1
          )
          assert len(failed_quicklooks) == 1
          assert len(downloaded_quicklooks) + len(
              failed_quicklooks
          ) == len(ids)
          assert id in failed_quicklooks
  
      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 12 for calling a global function with example usage: test_download_all_quicklooks_one_fail(api, tmpdir, quicklook_products) without return types