code: def test_read_out_mask(path_rgb_byte_tif):
      """Find a mask when out keyword arg is a masked array."""
      with rasterio.open(path_rgb_byte_tif) as src:
          a = np.ma.empty((3, 718, 791), np.ubyte)
          b = src.read(out=a)
          assert hasattr(a, "mask")
          assert hasattr(b, "mask")
  
imports: from hashlib import md5
  import unittest
  import numpy
  import pytest
  import rasterio
  from rasterio.errors import DatasetIOShapeError
label_desc: Use image node_id 6 for calling a global function with example usage: test_read_out_mask(path_rgb_byte_tif) without return types