code: def setup_method(self):
      self.K = nx.krackhardt_kite_graph()
      self.P3 = nx.path_graph(3)
      self.K5 = nx.complete_graph(5)
  
      F = nx.Graph()  # Florentine families
      F.add_edge("Acciaiuoli", "Medici")
      F.add_edge("Castellani", "Peruzzi")
      F.add_edge("Castellani", "Strozzi")
      F.add_edge("Castellani", "Barbadori")
      F.add_edge("Medici", "Barbadori")
      F.add_edge("Medici", "Ridolfi")
      F.add_edge("Medici", "Tornabuoni")
      F.add_edge("Medici", "Albizzi")
      F.add_edge("Medici", "Salviati")
      F.add_edge("Salviati", "Pazzi")
      F.add_edge("Peruzzi", "Strozzi")
      F.add_edge("Peruzzi", "Bischeri")
      F.add_edge("Strozzi", "Ridolfi")
      F.add_edge("Strozzi", "Bischeri")
      F.add_edge("Ridolfi", "Tornabuoni")
      F.add_edge("Tornabuoni", "Guadagni")
      F.add_edge("Albizzi", "Ginori")
      F.add_edge("Albizzi", "Guadagni")
      F.add_edge("Bischeri", "Guadagni")
      F.add_edge("Guadagni", "Lamberteschi")
      self.F = F
  
      G = nx.DiGraph()
      G.add_edge(0, 5)
      G.add_edge(1, 5)
      G.add_edge(2, 5)
      G.add_edge(3, 5)
      G.add_edge(4, 5)
      G.add_edge(5, 6)
      G.add_edge(5, 7)
      G.add_edge(5, 8)
      self.G = G
  
file_path: networkx/networkx/algorithms/centrality/tests/test_degree_centrality.py
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestDegreeCentrality obj's underlying member method code with example usage: obj.setup_method() without return types