docstr: The border pixels + an edge are all the same value
docstr_tok: ["The","border","pixels","+","an","edge","are","all","the","same","value"]
code: def test_watershed08(self):
      "The border pixels + an edge are all the same value"
      data = blob.copy()
      data[10, 7:9] = 141
      mask = data != 255
      markers = np.zeros(data.shape, int)
      markers[6, 7] = 1
      markers[14, 7] = 2
      out = watershed(data, markers, self.eight, mask=mask)
      #
      # The two objects should be the same size, except possibly for the
      # border region
      #
      size1 = np.sum(out == 1)
      size2 = np.sum(out == 2)
      self.assertTrue(abs(size1 - size2) <= 6)
  
imports: import math
  import unittest
  import numpy
  import pytest
  from scipy import ndimage
  from skimage._shared.filters import gaussian
  from skimage.measure import label
  from .._watershed import watershed
label_desc: Use image node_id 8 for calling the TestWatershed obj's underlying member method code with example usage: obj.test_watershed08() without return types