code: def test_colabel():
      # test the co_labelling functionality
      z = np.array([0, 1, 1, 0, 2])
      c = co_labelling(z).todense()
      tc = np.array(
          [
              [1.0, 0.0, 0.0, 1.0, 0.0],
              [0.0, 1.0, 1.0, 0.0, 0.0],
              [0.0, 1.0, 1.0, 0.0, 0.0],
              [1.0, 0.0, 0.0, 1.0, 0.0],
              [0.0, 0.0, 0.0, 0.0, 1.0],
          ]
      )
      assert_array_equal(c, tc)
  
file_path: nipy/nipy/algorithms/clustering/tests/test_imm.py
imports: import numpy
  from numpy.testing import assert_array_equal
  from ..imm import IMM, MixedIMM, co_labelling
label_desc: Use image node_id 1 for calling a global function with example usage: test_colabel() without return types