code: def test_masked_arr_provided(im, im_mask):
      """If a masked array is provided, mask returns masked array."""
  
      masked_input = np.ma.masked_where(im_mask == 0, im)
      out = mask_pixels(masked_input, im_mask, vals=[1])
      expected_in_mask = np.array(
          [[True, True, False], [False, False, False]]
      )
      expected_out_mask = np.array(
          [[True, True, True], [True, False, False]]
      )
  
      assert np.array_equal(expected_in_mask, masked_input.mask)
      assert np.array_equal(expected_out_mask, out.mask)
  
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 8 for calling a global function with example usage: test_masked_arr_provided(im, im_mask) without return types