code: def test_ItemSet_names():
      # ItemSet with single name.
      item_set = gb.ItemSet(torch.arange(0, 5), names="seed_nodes")
      assert item_set.names == ("seed_nodes",)
  
      # ItemSet with multiple names.
      item_set = gb.ItemSet(
          (torch.arange(0, 5), torch.arange(5, 10)),
          names=("seed_nodes", "labels"),
      )
      assert item_set.names == ("seed_nodes", "labels")
  
      # ItemSet without name.
      item_set = gb.ItemSet(torch.arange(0, 5))
      assert item_set.names is None
  
      # Integer-initiated ItemSet with excessive names.
      with pytest.raises(
          AssertionError,
          match=re.escape(
              "Number of items (1) and names (2) must match."
          ),
      ):
          _ = gb.ItemSet(5, names=("seed_nodes", "labels"))
  
      # ItemSet with mismatched items and names.
      with pytest.raises(
          AssertionError,
          match=re.escape(
              "Number of items (1) and names (2) must match."
          ),
      ):
          _ = gb.ItemSet(
              torch.arange(0, 5), names=("seed_nodes", "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 1 for calling a global function with example usage: test_ItemSet_names() without return types