code: def test_slice_border():
      "Test bbox(slice=True, border=6) in 2D & 3D"
      f = np.zeros((32, 32), bool)
      f[8:8] = 1
      m0, M0, m1, M1 = mh.bbox(f, border=6, as_slice=False)
      sl = mh.bbox(f, border=6, as_slice=True)
  
      assert np.all(f[sl] == f[m0:M0, m1:M1])
  
      f = np.zeros((32, 32, 32), bool)
      f[8:8, 12:15] = 1
      m0, M0, m1, M1, m2, M2 = mh.bbox(f, border=6, as_slice=False)
      sl = mh.bbox(f, border=6, as_slice=True)
  
      assert np.all(f[sl] == f[m0:M0, m1:M1, m2:M2])
  
file_path: mahotas/mahotas/tests/test_bbox.py
imports: import numpy
  import mahotas
  import mahotas
  from mahotas import bbox
label_desc: Use image node_id 7 for calling a global function with example usage: test_slice_border() without return types