code: def test_get_stream(api, tmpdir, smallest_online_products):
      product_info = smallest_online_products[0]
      uuid = product_info["id"]
      filename = product_info["title"]
      expected_path = tmpdir.join(filename + ".zip")
  
      response = api.get_stream(uuid)
      assert product_info["title"] == filename
      with open(expected_path, "wb") as f:
          shutil.copyfileobj(response.raw, f)
  
      assert product_info["size"] == expected_path.size()
      assert api._checksum_compare(expected_path, product_info)
  
      tmpdir.remove()
  
imports: import os
  import shutil
  import py.path
  import pytest
  import requests_mock
  from flaky import flaky
  from sentinelsat import SentinelAPI, make_path_filter
  from sentinelsat.exceptions import InvalidChecksumError, InvalidKeyError, LTAError, ServerError
label_desc: Use image node_id 14 for calling a global function with example usage: test_get_stream(api, tmpdir, smallest_online_products) without return types