code: def test_requests_error(exception, api, small_query):
      """non-HTTP errors originating from requests should be raised directly without translating them"""
      with requests_mock.mock() as rqst:
          rqst.register_uri(
              requests_mock.ANY, requests_mock.ANY, exc=exception
          )
          with pytest.raises(exception):
              api.query(**small_query)
  
          with pytest.raises(exception):
              api.get_product_odata(
                  "8df46c9e-a20c-43db-a19a-4240c2ed3b8b"
              )
  
          with pytest.raises(exception):
              api.download("8df46c9e-a20c-43db-a19a-4240c2ed3b8b")
  
          with pytest.raises(exception):
              api.download_all(["8df46c9e-a20c-43db-a19a-4240c2ed3b8b"])
  
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 4 for calling a global function with example usage: test_requests_error(exception, api, small_query) without return types