code: def test_get_products_invalid_json(test_wkt):
      api = SentinelAPI("mock_user", "mock_password")
      with requests_mock.mock() as rqst:
          rqst.get(
              "https://apihub.copernicus.eu/apihub/search",
              text="{Invalid JSON response",
              status_code=200,
          )
          with pytest.raises(SentinelAPIError) as excinfo:
              api.query(
                  area=test_wkt,
                  date=("20151219", "20151228"),
                  platformname="Sentinel-2",
              )
          assert excinfo.value.msg == "Invalid API response"
  
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 4 for calling a global function with example usage: test_get_products_invalid_json(test_wkt) without return types