code: def test_slic():
      f = luispedro_jpg()
      segmented, n = mahotas.segmentation.slic(f)
      assert segmented.shape == (f.shape[0], f.shape[1])
      assert segmented.max() == n
      segmented2, n2 = mahotas.segmentation.slic(f, 128)
      assert n2 < n
  
imports: import mahotas.segmentation
  import numpy
  import mahotas
  from .utils import luispedro_jpg
label_desc: Use image node_id 1 for calling a global function with example usage: test_slic() without return types