code: def test_add_edge_with_nonexistent_node():
      graph = DiGraph()
      graph.add_node("A")
      with pytest.raises(NodeNotFoundError):
          graph.add_edge("A", "B")
  
file_path: baikal/tests/_core/test_digraph.py
imports: import pytest
  from baikal._core.digraph import DiGraph, NodeNotFoundError, CyclicDiGraphError
label_desc: Use image node_id 4 for calling a global function with example usage: test_add_edge_with_nonexistent_node() without return types