code: def test_from_polygon():
      poly = load_wkt("POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))")
      regions = voronoi_diagram(poly)
  
      assert len(regions.geoms) == 4
  
file_path: shapely/shapely/tests/legacy/test_voronoi_diagram.py
imports: import numpy
  import pytest
  from shapely.geometry import MultiPoint
  from shapely.ops import voronoi_diagram
  from shapely.wkt import loads
label_desc: Use image node_id 6 for calling a global function with example usage: test_from_polygon() without return types