code: def test_p4_harmonic_subset(self):
      c = harmonic_centrality(self.P4, nbunch=[2, 3], sources=[0, 1])
      d = {2: 1.5, 3: 0.8333333}
      for n in [2, 3]:
          assert c[n] == pytest.approx(d[n], abs=1e-3)
  
file_path: networkx/networkx/algorithms/centrality/tests/test_harmonic_centrality.py
imports: import pytest
  import networkx
  from networkx.algorithms.centrality import harmonic_centrality
label_desc: Use image node_id 14 for calling the TestClosenessCentrality obj's underlying member method code with example usage: obj.test_p4_harmonic_subset() without return types