docstr: Betweenness Centrality Subset: P5
docstr_tok: ["Betweenness","Centrality","Subset",":","P5"]
code: def test_P5(self):
      """Betweenness Centrality Subset: P5"""
      G = nx.Graph()
      nx.add_path(G, range(5))
      b_answer = {0: 0, 1: 0.5, 2: 0.5, 3: 0, 4: 0, 5: 0}
      b = nx.betweenness_centrality_subset(
          G, sources=[0], targets=[3], weight=None
      )
      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 TestSubsetBetweennessCentrality obj's underlying member method code with example usage: obj.test_P5() without return types