code: def test_ItemSet_seed_nodes_labels():
      # Node IDs and labels.
      seed_nodes = torch.arange(0, 5)
      labels = torch.randint(0, 3, (5,))
      item_set = gb.ItemSet(
          (seed_nodes, labels), names=("seed_nodes", "labels")
      )
      assert item_set.names == ("seed_nodes", "labels")
      # Iterating over ItemSet and indexing one by one.
      for i, (seed_node, label) in enumerate(item_set):
          assert seed_node == seed_nodes[i]
          assert label == labels[i]
          assert seed_node == item_set[i][0]
          assert label == item_set[i][1]
      # Indexing with a slice.
      assert torch.equal(item_set[:][0], seed_nodes)
      assert torch.equal(item_set[:][1], labels)
      # Indexing with an Iterable.
      assert torch.equal(item_set[torch.arange(0, 5)][0], seed_nodes)
      assert torch.equal(item_set[torch.arange(0, 5)][1], labels)
  
imports: import re
  import dgl
  import pytest
  import torch
  from dgl import graphbolt
  from torch.testing import assert_close
label_desc: Use image node_id 4 for calling a global function with example usage: test_ItemSet_seed_nodes_labels() without return types