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