docstr: Weighted betweenness centrality: P3
docstr_tok: ["Weighted","betweenness","centrality",":","P3"]
code: def test_P3(self):
      """Weighted betweenness centrality: P3"""
      G = nx.path_graph(3)
      b_answer = {0: 0.0, 1: 1.0, 2: 0.0}
      b = nx.betweenness_centrality(
          G, weight="weight", normalized=False
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling the TestWeightedBetweennessCentrality obj's underlying member method code with example usage: obj.test_P3() without return types