code: def test_raises_networkxerr():
      with pytest.raises(nx.NetworkXError):
          raise nx.NetworkXError
  
file_path: networkx/networkx/tests/test_exceptions.py
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: test_raises_networkxerr() without return types