code: def test_frechet_densify_ndarray():
      actual = shapely.frechet_distance(
          shapely.linestrings([[0, 0], [100, 0]]),
          shapely.linestrings([[0, 0], [50, 50], [100, 0]]),
          densify=[0.1, 0.2, 1],
      )
      expected = np.array([50, 50.99019514, 70.7106781186548])
      np.testing.assert_array_almost_equal(actual, expected)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  import shapely
  from shapely import GeometryCollection, LineString, MultiPoint, Point, Polygon
  from shapely.tests.common import empty, geometry_collection, ignore_invalid, line_string, linear_ring, multi_line_string, multi_point, multi_polygon, point, point_polygon_testdata, polygon, polygon_with_hole
label_desc: Use image node_id 22 for calling a global function with example usage: test_frechet_densify_ndarray() without return types