code: def test_interest_points_descriptors():
      np.random.seed(22)
      f = np.random.rand(256, 256) * 230
      f = f.astype(np.uint8)
      fi = surf.integral(f)
      spoints = surf.surf(f, 6, 24, 1)
      for arr, is_integral in zip([f, fi], [False, True]):
          points = surf.interest_points(
              arr, 6, 24, 1, is_integral=is_integral
          )
          points = list(points)
          points.sort(key=(lambda p: -p[3]))
          points = np.array(points, dtype=np.float64)
          descs = surf.descriptors(arr, points, is_integral)
          assert np.all(descs[: len(spoints)] == spoints)
  
file_path: mahotas/mahotas/tests/test_surf.py
imports: import numpy
  import mahotas
  import mahotas.features.surf
  from mahotas.features import _surf
  from .utils import luispedro_jpg
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_interest_points_descriptors() without return types