code: def test_exception():
      with pytest.raises(nx.NetworkXError):
          G = nx.MultiDiGraph()
          cytoscape_data(G, name="foo", ident="foo")
  
file_path: networkx/networkx/readwrite/json_graph/tests/test_cytoscape.py
imports: import copy
  import json
  import pytest
  import networkx
  from networkx.readwrite.json_graph import cytoscape_data, cytoscape_graph
label_desc: Use image node_id 7 for calling a global function with example usage: test_exception() without return types