class_docstr: Unit tests for the
  :func:`networkx.generators.duplication.partial_duplication_graph`
  function.
code: def test_final_size(self):
      N = 10
      n = 5
      p = 0.5
      q = 0.5
      G = partial_duplication_graph(N, n, p, q)
      assert len(G) == N
      G = partial_duplication_graph(N, n, p, q, seed=42)
      assert len(G) == N
  
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 1 for calling the TestPartialDuplicationGraph obj's underlying member method code with example usage: obj.test_final_size() without return types