code: def test_complement_2():
      G1 = nx.DiGraph()
      G1.add_edge("A", "B")
      G1.add_edge("A", "C")
      G1.add_edge("A", "D")
      G1C = nx.complement(G1)
      assert sorted(G1C.edges()) == [
          ("B", "A"),
          ("B", "C"),
          ("B", "D"),
          ("C", "A"),
          ("C", "B"),
          ("C", "D"),
          ("D", "A"),
          ("D", "B"),
          ("D", "C"),
      ]
  
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: test_complement_2() without return types