code: def test_get_product_info_bad_key(api):
      with pytest.raises(InvalidKeyError) as excinfo:
          api.get_product_odata("invalid-xyz")
      assert (
          str(excinfo.value)
          == "Invalid key (invalid-xyz) to access Products"
      )
  
file_path: sentinelsat/tests/test_odata.py
imports: from datetime import datetime
  import pytest
  import requests_mock
  from sentinelsat import SentinelAPI
  from sentinelsat.exceptions import InvalidKeyError, ServerError
  from sentinelsat.sentinel import _parse_odata_timestamp
  from .conftest import chain, scrub_string
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_product_info_bad_key(api) without return types