code: def test_random_spanning_tree_empty_graph():
      G = nx.Graph()
      rst = nx.tree.random_spanning_tree(G)
      assert len(rst.nodes) == 0
      assert len(rst.edges) == 0
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_random_spanning_tree_empty_graph() without return types