code: def test_route():
      with expected_warnings(["Upgrading NumPy" + warning_optional]):
          return_path, cost = mcp.route_through_array(
              a, (1, 6), (7, 2), geometric=True
          )
      assert_almost_equal(cost, np.sqrt(2) / 2)
      assert_array_equal(
          return_path,
          [
              (1, 6),
              (1, 5),
              (1, 4),
              (1, 3),
              (1, 2),
              (2, 1),
              (3, 1),
              (4, 1),
              (5, 1),
              (6, 1),
              (7, 2),
          ],
      )
  
file_path: scikit-image/skimage/graph/tests/test_mcp.py
imports: import numpy
  import skimage.graph.mcp
  from skimage._shared.testing import assert_array_equal, assert_almost_equal, parametrize
  from skimage._shared._warnings import expected_warnings
label_desc: Use image node_id 3 for calling a global function with example usage: test_route() without return types