docstr: Test with a masked image
docstr_tok: ["Test","with","a","masked","image"]
code: def test_01_02_mask(self):
      """Test with a masked image"""
      labels = np.ones((10, 20), int)
      np.random.seed(12)
      image = np.random.uniform(size=(10, 20)).astype(np.float32)
      image[:, :10] *= 0.5
      mask = np.ones((10, 20), bool)
      mask[:, 10:] = False
      # Masked haralick
      hm = haralick.Haralick(image, labels, 0, 1, mask=mask)
      # Expected haralick
      he = haralick.Haralick(image[:, :10], labels[:, :10], 0, 1)
      for measured, expected in zip(hm.all(), he.all()):
          self.assertEqual(measured, expected)
  
imports: import unittest
  import centrosome.haralick
  import numpy
label_desc: Use image node_id 20 for calling the TestHaralick obj's underlying member method code with example usage: obj.test_01_02_mask() without return types