code: def test_stack_yes_file_ext(out_path):
      """Test for valid file extension."""
  
      # Test that out_path needs a file extension to be valid
      with pytest.raises(ValueError, match="The list of"):
          stack_arr, stack_prof = es.stack([], out_path=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 10 for calling a global function with example usage: test_stack_yes_file_ext(out_path) without return types