code: def test_remove_bordering():
      np.random.seed(343)
      for i in range(4):
          labeled, _ = mahotas.label(
              np.random.random_sample((128, 64)) > 0.7
          )
          removed = mahotas.labeled.remove_bordering(labeled)
          assert np.all(removed[0] == 0)
          assert np.all(removed[-1] == 0)
          assert np.all(removed[:, 0] == 0)
          assert np.all(removed[:, -1] == 0)
  
          removed2 = np.zeros_like(removed)
          mahotas.labeled.remove_bordering(labeled, out=removed2)
          assert np.all(removed2 == removed)
  
imports: import numpy
  import mahotas
  import mahotas.labeled
  from pytest import raises
label_desc: Use image node_id 13 for calling a global function with example usage: test_remove_bordering() without return types