code: def test_random(self):
      x = (np.random.rand(20, 30) * 5).astype(int)
      labels = label(x)
  
      n = labels.max()
      for i in range(n):
          values = x[labels == i]
          assert np.all(values == values[0])
  
imports: import numpy
  from skimage.measure import label
  import skimage.measure._ccomp
  from skimage._shared import testing
  from skimage._shared.testing import assert_array_equal
label_desc: Use image node_id 3 for calling the TestConnectedComponents3d obj's underlying member method code with example usage: obj.test_random() without return types