code: def _check_equality(left, right, check_less_precise):
      assert_error_message = (
          "{0} out of {1} geometries are not {3}equal.\n"
          "Indices where geometries are not {3}equal: {2} \n"
          "The first not {3}equal geometry:\n"
          "Left: {4}\n"
          "Right: {5}\n"
      )
      if check_less_precise:
          precise = "almost "
          equal = _geom_almost_equals_mask(left, right)
      else:
          precise = ""
          equal = _geom_equals_mask(left, right)
  
      if not equal.all():
          unequal_left_geoms = left[~equal]
          unequal_right_geoms = right[~equal]
          raise AssertionError(
              assert_error_message.format(
                  len(unequal_left_geoms),
                  len(left),
                  unequal_left_geoms.index.to_list(),
                  precise,
                  _truncated_string(unequal_left_geoms.iloc[0]),
                  _truncated_string(unequal_right_geoms.iloc[0]),
              )
          )
  
file_path: geopandas/geopandas/testing.py
imports: import warnings
  import pandas
  from geopandas import GeoDataFrame, GeoSeries
  from geopandas.array import GeometryDtype
label_desc: Use image node_id 8 for calling a global function with example usage: _check_equality(left, right, check_less_precise) without return types