code: def test_asadpour_incomplete_graph():
      """
      Test that the proper exception is raised when asadpour_atsp is given an
      incomplete graph
      """
  
      G = nx.complete_graph(4, create_using=nx.DiGraph)
      # have to set edge weights so that if the exception is not raised, the
      # function will complete and we will fail the test
      nx.set_edge_attributes(G, 1, "weight")
      G.remove_edge(0, 1)
  
      pytest.raises(nx.NetworkXError, nx_app.asadpour_atsp, G)
  
imports: import random
  import pytest
  import networkx
  import networkx.algorithms.approximation
label_desc: Use image node_id 21 for calling a global function with example usage: test_asadpour_incomplete_graph() without return types