class_docstr: Unit tests for the
  :func:`networkx.generators.duplication.duplication_divergence_graph`
  function.
code: def test_non_extreme_probability_value(self):
      G = duplication_divergence_graph(6, p=0.3, seed=42)
      assert len(G) == 6
      assert list(G.degree()) == [
          (0, 2),
          (1, 3),
          (2, 2),
          (3, 3),
          (4, 1),
          (5, 1),
      ]
  
file_path: networkx/networkx/generators/tests/test_duplication.py
imports: import pytest
  from networkx.exception import NetworkXError
  from networkx.generators.duplication import duplication_divergence_graph, partial_duplication_graph
label_desc: Use image node_id 4 for calling the TestDuplicationDivergenceGraph obj's underlying member method code with example usage: obj.test_non_extreme_probability_value() without return types