code: def test_unicode_support(api):
      # DHuS only accepts latin1 charset in the GET params
      with pytest.raises(UnicodeEncodeError):
          api.count(raw="٩(●̮̮̃•̃)۶:")
  
      # check that the allowed non-ASCII chars are at least understood correctly by DHuS
      test_str = "õäöü\xff("
      with pytest.raises(QuerySyntaxError) as excinfo:
          api.count(raw=test_str)
      assert test_str in str(excinfo.value)
  
      with pytest.raises(InvalidKeyError) as excinfo:
          api.get_product_odata(test_str)
      assert (
          test_str
          in excinfo.value.response.json()["error"]["message"]["value"]
      )
      assert test_str in str(excinfo.value)
  
file_path: sentinelsat/tests/test_misc.py
imports: import hashlib
  import pytest
  import requests
  import requests_mock
  from sentinelsat import SentinelAPI
  from sentinelsat.exceptions import SentinelAPIError, QuerySyntaxError, InvalidKeyError
  from sentinelsat.sentinel import _parse_opensearch_response
label_desc: Use image node_id 2 for calling a global function with example usage: test_unicode_support(api) without return types