code: def test_size_labeled():
      np.random.seed(334)
      for i in range(16):
          labeled = np.zeros((64, 125), dtype=np.intc)
          labeled += 8 * np.random.random_sample(labeled.shape).astype(
              np.intc
          )
          fast = mahotas.labeled.labeled_size(labeled)
          slow = slow_labeled_size(labeled)
          assert np.all(fast == slow)
  
imports: import numpy
  import mahotas
  import mahotas.labeled
  from pytest import raises
label_desc: Use image node_id 12 for calling a global function with example usage: test_size_labeled() without return types