code: def test_stack_invalid_out_paths_raise_errors():
      """If users provide an output path that doesn't exist, raise error."""
  
      with pytest.raises(ValueError, match="not exist"):
          es.stack(
              band_paths=["fname1.tif", "fname2.tif"],
              out_path="nonexistent_directory/output.tif",
          )
  
file_path: earthpy/earthpy/tests/test_stack.py
imports: import os
  import numpy
  import pytest
  import earthpy.spatial
label_desc: Use image node_id 16 for calling a global function with example usage: test_stack_invalid_out_paths_raise_errors() without return types