code: def test_dominating_set():
      G = nx.gnp_random_graph(100, 0.1)
      D = nx.dominating_set(G)
      assert nx.is_dominating_set(G, D)
      D = nx.dominating_set(G, start_with=0)
      assert nx.is_dominating_set(G, D)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_dominating_set() without return types