code: def test_stack_nodata_outfile(in_paths, out_path):
      """Test nodata parameter for masking stacked array and writing output
      file."""
  
      stack_arr, stack_prof = es.stack(in_paths, out_path, nodata=0)
  
      # basic_image has 91 0 values, which should be masked
      assert 0 not in stack_arr and np.sum(stack_arr.mask) == 91 * len(
          in_paths
      )
      assert os.path.exists(out_path)
  
file_path: earthpy/earthpy/tests/test_stack.py
imports: import os
  import numpy
  import pytest
  import earthpy.spatial
label_desc: Use image node_id 15 for calling a global function with example usage: test_stack_nodata_outfile(in_paths, out_path) without return types