code: def test_polygon(self):
      shell = ((0, 0), (3, 0), (3, 3), (0, 3))
      hole = ((1, 1), (2, 1), (2, 2), (1, 2))
      p_solid = Polygon(shell)
      p2_solid = Polygon(shell)
      p_hole = Polygon(shell, holes=[hole])
      p2_hole = Polygon(shell, holes=[hole])
  
      assert p_solid == p2_solid
      assert p_hole == p2_hole
      assert p_solid != p_hole
  
      shell2 = ((-5, 2), (10.5, 3), (7, 3))
      p3_hole = Polygon(shell2, holes=[hole])
      assert p_hole != p3_hole
  
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 3 for calling the OperatorsTestCase obj's underlying member method code with example usage: obj.test_polygon() without return types