code: def spars_func(coeffs, **kwargs):
      eps = np.finfo(coeffs.dtype).eps
      return np.sum(np.abs(coeffs) > eps, axis=None)
  
imports: from collections import defaultdict
  import dill
  import numpy
  from tick.base import Base
  from numpy.linalg import norm
label_desc: Use image node_id 1 for calling a global function with example usage: spars_func(coeffs) and returns: np