code: def test_equality_exact_type():
      # geometries with different type but same coord seq are not equal
      geom1 = LineString([(0, 0), (1, 1), (0, 1), (0, 0)])
      geom2 = LinearRing([(0, 0), (1, 1), (0, 1), (0, 0)])
      geom3 = Polygon([(0, 0), (1, 1), (0, 1), (0, 0)])
      assert geom1 != geom2
      assert geom1 != geom3
      assert geom2 != geom3
  
      # empty with different type
      geom1 = shapely.from_wkt("POINT EMPTY")
      geom2 = shapely.from_wkt("LINESTRING EMPTY")
      assert geom1 != geom2
  
file_path: shapely/shapely/tests/geometry/test_equality.py
imports: import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, MultiLineString, Point, Polygon
  from shapely.tests.common import all_types, all_types_z, empty_point, ignore_invalid
label_desc: Use image node_id 8 for calling a global function with example usage: test_equality_exact_type() without return types