code: def test_s2_cloudcover(api, test_wkt):
      products = api.query(
          test_wkt,
          ("20181212", "20181228"),
          platformname="Sentinel-2",
          cloudcoverpercentage=(0, 10),
      )
  
      product_ids = list(products)
      assert product_ids == [
          "bf652bc4-299c-4c39-9238-ee5a3fdc0d3e",
          "b508a8cd-c7d6-4a4d-9286-6d9463926554",
          "c9b0a744-c0e5-41f9-af6c-f0af83681e58",
          "2e69293b-591f-41d4-99e5-89ec087ae487",
          "dcd0849f-f43a-46f4-9267-da8069b74dd8",
      ]
  
      # For order-by test
      vals = [x["cloudcoverpercentage"] for x in products.values()]
      assert sorted(vals) != vals
      assert all(0 <= x <= 10 for x in vals)
  
imports: from contextlib import contextmanager
  from datetime import datetime, date, timedelta
  import pytest
  import requests_mock
  from requests.exceptions import StreamConsumedError, ContentDecodingError, InvalidProxyURL, InvalidHeader, TooManyRedirects, ReadTimeout, SSLError
  from sentinelsat import format_query_date, SentinelAPI
  from sentinelsat.exceptions import QuerySyntaxError, QueryLengthError, UnauthorizedError
  from sentinelsat.sentinel import _format_order_by
label_desc: Use image node_id 21 for calling a global function with example usage: test_s2_cloudcover(api, test_wkt) without return types