code: def test_double_edge_directed():
      graph = nx.DiGraph([(0, 1), (2, 3)])
      with pytest.raises(
          nx.NetworkXError, match="not defined for directed graphs."
      ):
          G = nx.double_edge_swap(graph)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 15 for calling a global function with example usage: test_double_edge_directed() without return types