code: def test_dwithin():
      p1 = shapely.points(50, 4)
      p2 = shapely.points(50.1, 4.1)
      actual = shapely.dwithin([p1, p2, None], p1, distance=0.05)
      np.testing.assert_equal(actual, [True, False, False])
      assert actual.dtype == np.bool_
      actual = shapely.dwithin([p1, p2, None], p1, distance=0.2)
      np.testing.assert_allclose(actual, [True, True, False])
      assert actual.dtype == np.bool_
  
      # an array of distances
      actual = shapely.dwithin(p1, p2, distance=[0.05, 0.2, np.nan])
      np.testing.assert_allclose(actual, [False, True, False])
  
imports: from functools import partial
  import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, Point
  from shapely.tests.common import all_types, all_types_z, empty, geometry_collection, ignore_invalid, line_string, linear_ring, point, polygon
label_desc: Use image node_id 16 for calling a global function with example usage: test_dwithin() without return types