code: def test_masked_input():
      G = np.ma.masked_equal(directed_G, 0)
  
      def check(method):
          SP = shortest_path(
              directed_G, method=method, directed=True, overwrite=False
          )
          assert_array_almost_equal(SP, directed_SP)
  
      for method in methods:
          check(method)
  
file_path: catboost/contrib/python/scipy/py2/scipy/sparse/csgraph/tests/test_shortest_path.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from pytest import raises
  from scipy.sparse.csgraph import shortest_path, dijkstra, johnson, bellman_ford, construct_dist_matrix, NegativeCycleError
label_desc: Use image node_id 9 for calling a global function with example usage: test_masked_input() without return types