code: def test_linestring(self):
      line1 = LineString([(0, 0), (1, 1), (2, 2)])
      line2 = LineString([(0, 0), (2, 2)])
      line2_dup = LineString([(0, 0), (2, 2)])
      # .equals() indicates these are the same
      assert line1.equals(line2)
      # but != indicates these are different
      assert line1 != line2
      # but dupes are the same with ==
      assert line2 == line2_dup
  
file_path: shapely/shapely/tests/legacy/test_operators.py
imports: import unittest
  from shapely.geometry import LineString, MultiPoint, Point, Polygon
label_desc: Use image node_id 4 for calling the OperatorsTestCase obj's underlying member method code with example usage: obj.test_linestring() without return types