code: def test_gh_17782_segfault():
      text = """%%MatrixMarket matrix coordinate real general
                  84 84 22
                  2 1 4.699999809265137e+00
                  6 14 1.199999973177910e-01
                  9 6 1.199999973177910e-01
                  10 16 2.012000083923340e+01
                  11 10 1.422000026702881e+01
                  12 1 9.645999908447266e+01
                  13 18 2.012000083923340e+01
                  14 13 4.679999828338623e+00
                  15 11 1.199999973177910e-01
                  16 12 1.199999973177910e-01
                  18 15 1.199999973177910e-01
                  32 2 2.299999952316284e+00
                  33 20 6.000000000000000e+00
                  33 32 5.000000000000000e+00
                  36 9 3.720000028610229e+00
                  36 37 3.720000028610229e+00
                  36 38 3.720000028610229e+00
                  37 44 8.159999847412109e+00
                  38 32 7.903999328613281e+01
                  43 20 2.400000000000000e+01
                  43 33 4.000000000000000e+00
                  44 43 6.028000259399414e+01
      """
      data = mmread(StringIO(text))
      dijkstra(data, directed=True, return_predecessors=True)
  
imports: from io import StringIO
  import warnings
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_allclose
  from pytest import raises
  from scipy.sparse.csgraph import shortest_path, dijkstra, johnson, bellman_ford, construct_dist_matrix, NegativeCycleError
  import scipy.sparse
  from scipy.io import mmread
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_gh_17782_segfault() without return types