code: def test_double_edge_swap_tries():
      with pytest.raises(nx.NetworkXError):
          G = nx.double_edge_swap(
              nx.path_graph(10), nswap=1, max_tries=0
          )
  
imports: import pytest
  import networkx
label_desc: Use image node_id 14 for calling a global function with example usage: test_double_edge_swap_tries() without return types