code: def test_cdilate():
      from mahotas.tests.pymorph_copy import cdilate as slow_cdilate
  
      np.random.seed(332)
      Bc = np.zeros((3, 3), bool)
      Bc[1] = 1
      Bc[:, 1] = 1
      for n in range(8):
          f = np.random.random_sample((128, 128))
          f = f > 0.9
          g = np.random.random_sample((128, 128))
          g = g > 0.7
          assert np.all(
              mahotas.cdilate(f, g, Bc, n + 1)
              == slow_cdilate(f, g, Bc, n + 1)
          )
  
file_path: mahotas/mahotas/tests/test_dilate_erode.py
imports: import numpy
  import mahotas
  import mahotas
label_desc: Use image node_id 6 for calling a global function with example usage: test_cdilate() without return types