code: def test_checksumming_progressbars(
      capsys, fixture_path, algo_name, algo_constructor
  ):
      api = SentinelAPI("mock_user", "mock_password")
      algo = algo_constructor()
      true_path = fixture_path("expected_search_footprints_s1.geojson")
      with open(true_path, "rb") as testfile:
          algo.update(testfile.read())
          real_checksum = algo.hexdigest()
  
      assert (
          api._checksum_compare(true_path, {algo_name: real_checksum})
          is True
      )
      out, err = capsys.readouterr()
      assert "checksumming" in err
      api = SentinelAPI(
          "mock_user", "mock_password", show_progressbars=False
      )
      assert (
          api._checksum_compare(
              fixture_path("map.geojson"), {algo_name: real_checksum}
          )
          is False
      )
      out, err = capsys.readouterr()
      assert out == ""
      assert "checksumming" not in err
  
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 1 for calling a global function with example usage: test_checksumming_progressbars(capsys, fixture_path, algo_name, algo_constructor) without return types