code: def test_invalid_method():
      seed = np.array([0, 8, 8, 8, 8, 8, 8, 8, 8, 0])
      mask = np.array([0, 3, 6, 2, 1, 1, 1, 4, 2, 0])
      with pytest.raises(ValueError):
          reconstruction(seed, mask, method="foo")
  
file_path: scikit-image/skimage/morphology/tests/test_reconstruction.py
imports: import math
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from skimage._shared.utils import _supported_float_type
  from skimage.morphology.grayreconstruct import reconstruction
label_desc: Use image node_id 10 for calling a global function with example usage: test_invalid_method() without return types