docstr: ensure default block_params is robust to anisotropic shape.
docstr_tok: ["ensure","default","block_params","is","robust","to","anisotropic","shape","."]
code: def test_distance_transform_edt_uniform_valued(
      self, xp, scp, value, ndim
  ):
      """ensure default block_params is robust to anisotropic shape."""
      img = xp.full((48,) * ndim, value, dtype=cupy.uint8)
      # ensure there is at least 1 pixel at background intensity
      img[(slice(24, 25),) * ndim] = 0
      return scp.ndimage.distance_transform_edt(img)
  
imports: import copy
  import numpy
  import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.ndimage
label_desc: Use image node_id 7 for calling the TestDistanceTransform obj's underlying member method code with example usage: obj.test_distance_transform_edt_uniform_valued(xp, scp, value, ndim) and returns: scp