code: def test_fixture_data(input_expected_output, which_import):
      nx = which_import
      M = utils.read_csv_for_nx(input_expected_output["graph_file"])
      Gnx = nx.from_pandas_edgelist(
          M,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.DiGraph(),
      )
      pr = nx.pagerank(
          Gnx,
          max_iter=input_expected_output["max_iter"],
          tol=input_expected_output["tol"],
          personalization=input_expected_output["personalization"],
          nstart=input_expected_output["nstart"],
      )
      actual = sorted(pr.items())
      expected = sorted(input_expected_output["nx_pr_rankings"].items())
      assert all(
          [
              a == pytest.approx(b, abs=1.0e-04)
              for a, b in zip(actual, expected)
          ]
      )
  
file_path: cugraph/python/cugraph/cugraph/tests/nx/test_compat_pr.py
imports: import gc
  import importlib
  import pytest
  import numpy
  from cugraph.testing import utils
  from cugraph.datasets import karate
  from pylibcugraph.testing.utils import gen_fixture_params_product
label_desc: Use image node_id 10 for calling a global function with example usage: test_fixture_data(input_expected_output, which_import) without return types