code: def test_edges():
      graph = DiGraph()
      graph.add_node("A")
      graph.add_node("B")
      graph.add_node("C")
  
      graph.add_edge("A", "B", 123)
      graph.add_edge("A", "C", 456)
  
      # Cannot make sets of sets to compare and assert
      # so we use lists and do brute-force comparison
      def equal(x, y):
          y = list(y)
          try:
              for elem in x:
                  y.remove(elem)
          except ValueError:
              return False
          return not y
  
      assert equal(
          [("A", "B", {123}), ("A", "C", {456})], list(graph.edges)
      )
  
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 8 for calling a global function with example usage: test_edges() and returns: unknown, False