code: def test_k5_closeness(self):
      c = nx.closeness_centrality(self.K5)
      d = {0: 1.000, 1: 1.000, 2: 1.000, 3: 1.000, 4: 1.000}
      for n in sorted(self.K5):
          assert c[n] == pytest.approx(d[n], abs=1e-3)
  
file_path: networkx/networkx/algorithms/centrality/tests/test_closeness_centrality.py
imports: import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestClosenessCentrality obj's underlying member method code with example usage: obj.test_k5_closeness() without return types