code: def test_api_query_format_sets():
      query = SentinelAPI.format_query(
          orbitnumber={16301, 16302, 16303}
      )
      assert (
          query
          == "(orbitnumber:16301 OR orbitnumber:16302 OR orbitnumber:16303)"
      )
  
      query = SentinelAPI.format_query(orbitnumber=set())
      assert query == ""
  
      query = SentinelAPI.format_query(
          ingestiondate={(date(2017, 1, 1), "20170203")}
      )
      assert (
          query
          == '(ingestiondate:["2017-01-01T00:00:00Z" TO "2017-02-03T00:00:00Z"])'
      )
  
      with pytest.raises(ValueError):
          SentinelAPI.format_query(ingestiondate={})
      with pytest.raises(ValueError):
          SentinelAPI.format_query(ingestiondate={""})
      with pytest.raises(ValueError):
          SentinelAPI.format_query(
              ingestiondate={date(2017, 1, 1), "20170203"}
          )
  
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 8 for calling a global function with example usage: test_api_query_format_sets() without return types