code: def test_connectivity_1_vs_2(self):
      x = np.zeros((2, 2, 2), int)
      x[0, 1, 1] = 1
      x[1, 0, 0] = 1
      label1 = x.copy()
      label1[1, 0, 0] = 2
      assert_array_equal(label(x, connectivity=1), label1)
      assert_array_equal(label(x, connectivity=3), x)
  
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 6 for calling the TestConnectedComponents3d obj's underlying member method code with example usage: obj.test_connectivity_1_vs_2() without return types