code: def test_outdegree_centrality(self):
      d = nx.out_degree_centrality(self.G)
      exact = {
          0: 0.125,
          1: 0.125,
          2: 0.125,
          3: 0.125,
          4: 0.125,
          5: 0.375,
          6: 0.0,
          7: 0.0,
          8: 0.0,
      }
      for n, dc in d.items():
          assert exact[n] == pytest.approx(dc, abs=1e-7)
  
file_path: networkx/networkx/algorithms/centrality/tests/test_degree_centrality.py
imports: import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestDegreeCentrality obj's underlying member method code with example usage: obj.test_outdegree_centrality() without return types