code: def test_border(dtype):
      img = np.zeros((100, 100), dtype=dtype)
      keypoints = np.array([[1, 1], [20, 20], [50, 50], [80, 80]])
  
      extractor = BRIEF(patch_size=41, rng=1)
      extractor.extract(img, keypoints)
  
      assert extractor.descriptors.shape[0] == 3
      assert_array_equal(extractor.mask, (False, True, True, True))
  
file_path: scikit-image/skimage/feature/tests/test_brief.py
imports: import pytest
  import copy
  import numpy
  from skimage._shared.testing import assert_array_equal
  from skimage import data
  from skimage.feature import BRIEF, corner_peaks, corner_harris
  from skimage._shared import testing
label_desc: Use image node_id 5 for calling a global function with example usage: test_border(dtype) without return types