code: def _nelems(arr):
      return len(set(map(int, arr.ravel())))
  
imports: import numpy
  import mahotas
  import mahotas.labeled
  from pytest import raises
label_desc: Use image node_id 15 for calling a global function with example usage: _nelems(arr) and returns: len