code: def test_footprints_s2(products, fixture_path):
      footprints = SentinelAPI.to_geojson(products)
      for footprint in footprints["features"]:
          assert not footprint["geometry"].errors()
  
      with open(
          fixture_path("expected_search_footprints_s2.geojson")
      ) as geojson_file:
          expected_footprints = geojson.loads(geojson_file.read())
      # to compare unordered lists (JSON objects) they need to be sorted or changed to sets
      assert set(footprints) == set(expected_footprints)
  
file_path: sentinelsat/tests/test_geographic.py
imports: from datetime import datetime
  import re
  import geojson
  import pytest
  from sentinelsat import geojson_to_wkt, read_geojson, SentinelAPI, placename_to_wkt
label_desc: Use image node_id 5 for calling a global function with example usage: test_footprints_s2(products, fixture_path) without return types