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