code: def test_ItemSet_node_pairs_neg_dsts():
      # Node pairs and negative destinations.
      node_pairs = torch.arange(0, 10).reshape(-1, 2)
      neg_dsts = torch.arange(10, 25).reshape(-1, 3)
      item_set = gb.ItemSet(
          (node_pairs, neg_dsts), names=("node_pairs", "negative_dsts")
      )
      assert item_set.names == ("node_pairs", "negative_dsts")
      # Iterating over ItemSet and indexing one by one.
      for i, (node_pair, neg_dst) in enumerate(item_set):
          assert torch.equal(node_pairs[i], node_pair)
          assert torch.equal(neg_dsts[i], neg_dst)
          assert torch.equal(node_pairs[i], item_set[i][0])
          assert torch.equal(neg_dsts[i], item_set[i][1])
      # Indexing with a slice.
      assert torch.equal(item_set[:][0], node_pairs)
      assert torch.equal(item_set[:][1], neg_dsts)
      # Indexing with an Iterable.
      assert torch.equal(item_set[torch.arange(0, 5)][0], node_pairs)
      assert torch.equal(item_set[torch.arange(0, 5)][1], neg_dsts)
  
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 7 for calling a global function with example usage: test_ItemSet_node_pairs_neg_dsts() without return types