code: def test_random():
      np.random.seed(33)
      A = np.random.rand(128, 128) > 0.8
      labeled, nr = label(A)
      assert len(set(labeled.ravel())) == (nr + 1)
      assert labeled.max() == nr
  
imports: from mahotas import label
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_random() without return types