code: def test_dimensions(self):
      # Background: see http://trac.gispython.org/lab/ticket/168
      # http://lists.gispython.org/pipermail/community/2008-August/001859.html
  
      coords = (
          (0.0, 0.0, 0.0),
          (0.0, 1.0, 0.0),
          (1.0, 1.0, 0.0),
          (1.0, 0.0, 0.0),
      )
      polygon = Polygon(coords)
      assert polygon._ndim == 3
      gi = polygon.__geo_interface__
      assert gi["coordinates"] == (
          (
              (0.0, 0.0, 0.0),
              (0.0, 1.0, 0.0),
              (1.0, 1.0, 0.0),
              (1.0, 0.0, 0.0),
              (0.0, 0.0, 0.0),
          ),
      )
  
      e = polygon.exterior
      assert e._ndim == 3
      gi = e.__geo_interface__
      assert gi["coordinates"] == (
          (0.0, 0.0, 0.0),
          (0.0, 1.0, 0.0),
          (1.0, 1.0, 0.0),
          (1.0, 0.0, 0.0),
          (0.0, 0.0, 0.0),
      )
  
imports: import numpy
  import pytest
  from shapely import LinearRing, LineString, Point, Polygon
  from shapely.coords import CoordinateSequence
  from shapely.errors import TopologicalError
  from shapely.wkb import loads
label_desc: Use image node_id 4 for calling the TestPolygon obj's underlying member method code with example usage: obj.test_dimensions() without return types