code: def test_dilate_crash():
      # There was a major bug in dilate, that caused this to crash
      from mahotas.morph import dilate
  
      large = np.random.random_sample((512, 512)) > 0.5
      small = large[128:256, 128:256]
      dilate(small)
  
imports: import mahotas
  import numpy
  from mahotas.morph import get_structuring_elem, subm, tophat_open, tophat_close
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_dilate_crash() without return types