code: def test_polygon_from_numpy():
      a = np.array(
          ((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0), (0.0, 0.0))
      )
      polygon = Polygon(a)
      assert len(polygon.exterior.coords) == 5
      assert polygon.exterior.coords[:] == [
          (0.0, 0.0),
          (0.0, 1.0),
          (1.0, 1.0),
          (1.0, 0.0),
          (0.0, 0.0),
      ]
      assert len(polygon.interiors) == 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 23 for calling a global function with example usage: test_polygon_from_numpy() without return types