code: def test_labels_not_intc():
      img = np.arange(256).reshape((16, 16))
      labels = img.copy()
      labels %= 3
      cm = mahotas.center_of_mass(img, labels)
      assert cm.shape == (3, 2)
  
      labels = labels.T.copy()
      cm = mahotas.center_of_mass(img, labels.T)
      assert cm.shape == (3, 2)
  
      labels = labels.T.copy()
      labels = labels.astype(np.uint16)
      cm = mahotas.center_of_mass(img, labels)
      assert cm.shape == (3, 2)
  
file_path: mahotas/mahotas/tests/test_center_of_mass.py
imports: import numpy
  from scipy import ndimage
  import mahotas.center_of_mass
label_desc: Use image node_id 7 for calling a global function with example usage: test_labels_not_intc() without return types