code: def test_maybe_regular_expander_badinput():
      pytest.importorskip("numpy")
      pytest.importorskip("scipy")
  
      with pytest.raises(
          nx.NetworkXError, match="n must be a positive integer"
      ):
          nx.maybe_regular_expander(n=-1, d=2)
  
      with pytest.raises(
          nx.NetworkXError, match="d must be greater than or equal to 2"
      ):
          nx.maybe_regular_expander(n=10, d=0)
  
      with pytest.raises(
          nx.NetworkXError, match="Need n-1>= d to have room"
      ):
          nx.maybe_regular_expander(n=5, d=6)
  
file_path: networkx/networkx/generators/tests/test_expanders.py
imports: import pytest
  import networkx
label_desc: Use image node_id 12 for calling a global function with example usage: test_maybe_regular_expander_badinput() without return types