code: def test_is_partition():
      G = nx.empty_graph(3)
      assert nx.community.is_partition(G, [{0, 1}, {2}])
      assert nx.community.is_partition(G, ({0, 1}, {2}))
      assert nx.community.is_partition(G, ([0, 1], [2]))
      assert nx.community.is_partition(G, [[0, 1], [2]])
  
imports: import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_partition() without return types