code: def test_exception(self):
      with pytest.raises(nx.NetworkXError):
          G = nx.MultiDiGraph()
          attrs = {"id": "node", "key": "node"}
          adjacency_data(G, attrs)
  
file_path: networkx/networkx/readwrite/json_graph/tests/test_adjacency.py
imports: import copy
  import json
  import pytest
  import networkx
  from networkx.readwrite.json_graph import adjacency_data, adjacency_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 8 for calling the TestAdjacency obj's underlying member method code with example usage: obj.test_exception() without return types