class_docstr: Unit tests for the :func:`~networkx.configuration_model`
  function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.configuration_model","`","function","."]
docstr: Tests that a degree sequence whose sum is odd yields an
  exception.
docstr_tok: ["Tests","that","a","degree","sequence","whose","sum","is","odd","yields","an","exception","."]
code: def test_odd_degree_sum(self):
      """Tests that a degree sequence whose sum is odd yields an
      exception.
  
      """
      with pytest.raises(nx.NetworkXError):
          nx.configuration_model([1, 2])
  
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling the TestConfigurationModel obj's underlying member method code with example usage: obj.test_odd_degree_sum() without return types