code: def test_margulis_gabber_galil_graph_badinput(graph_type):
      with pytest.raises(
          nx.NetworkXError,
          match="`create_using` must be an undirected multigraph",
      ):
          nx.margulis_gabber_galil_graph(3, create_using=graph_type)
  
file_path: networkx/networkx/generators/tests/test_expanders.py
imports: import pytest
  import networkx
label_desc: Use image node_id 9 for calling a global function with example usage: test_margulis_gabber_galil_graph_badinput(graph_type) without return types