class_docstr: Unit tests for the
  :func:`networkx.generators.duplication.duplication_divergence_graph`
  function.
code: def test_minimum_desired_nodes(self):
      with pytest.raises(
          NetworkXError, match=".*n must be greater than or equal to 2"
      ):
          duplication_divergence_graph(1, p=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 5 for calling the TestDuplicationDivergenceGraph obj's underlying member method code with example usage: obj.test_minimum_desired_nodes() without return types