code: def test_default_percolation():
      G = nx.erdos_renyi_graph(42, 0.42, seed=42)
      assert nx.percolation_centrality(G) == pytest.approx(
          nx.betweenness_centrality(G)
      )
  
file_path: networkx/networkx/algorithms/centrality/tests/test_percolation_centrality.py
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling a global function with example usage: test_default_percolation() without return types