code: def test_nonzero():
      A = np.arange(32 * 32).reshape((32, 32))
      features = lbp(A, 3, 12)
      features_ignore_zeros = lbp(
          A * (A > 256), 3, 12, ignore_zeros=True
      )
      assert features.sum() > 0
      assert not np.all(features == features_ignore_zeros)
  
file_path: mahotas/mahotas/tests/test_lbp.py
imports: import numpy
  from mahotas.features import _lbp
  import mahotas.thresholding
  from mahotas.features import lbp
  from mahotas.features.lbp import lbp_transform, lbp_names
  from mahotas.tests.utils import luispedro_jpg
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_nonzero() without return types