code: def test_mask_contains_ones(im, im_mask):
      """A boolean mask without the value 1 fails gracefully."""
  
      zero_array = im_mask * 0
      with pytest.raises(ValueError, match="Mask requires values of 1"):
          mask_pixels(im, mask_arr=zero_array)
  
file_path: earthpy/earthpy/tests/test_mask.py
imports: import numpy
  from earthpy.mask import mask_pixels
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_mask_contains_ones(im, im_mask) without return types