code: def test_3d_edge_filters(func, max_edge):
      blobs = data.binary_blobs(length=128, n_dim=3, rng=5)
      edges = func(blobs)
      center = max_edge.shape[0] // 2
      if center == 2:
          # exact edge as defined in MAX_FARID_0 not present in blobs data
          rtol = 1e-3
      else:
          rtol = 1e-7
      assert_allclose(
          np.max(edges),
          func(max_edge)[center, center, center],
          rtol=rtol,
      )
  
imports: import numpy
  import pytest
  from numpy.testing import assert_, assert_allclose, assert_array_almost_equal
  from skimage import data, filters
  from skimage._shared.utils import _supported_float_type
  from skimage.filters.edges import _mask_filter_result
label_desc: Use image node_id 57 for calling a global function with example usage: test_3d_edge_filters(func, max_edge) without return types