code: def test_ItemSetDict_repr():
      # ItemSetDict with single name.
      item_set = gb.ItemSetDict(
          {
              "user": gb.ItemSet(
                  torch.arange(0, 5), names="seed_nodes"
              ),
              "item": gb.ItemSet(
                  torch.arange(5, 10), names="seed_nodes"
              ),
          }
      )
      expected_str = (
          "ItemSetDict(\n"
          "    itemsets={'user': ItemSet(\n"
          "                 items=(tensor([0, 1, 2, 3, 4]),),\n"
          "                 names=('seed_nodes',),\n"
          "             ), 'item': ItemSet(\n"
          "                 items=(tensor([5, 6, 7, 8, 9]),),\n"
          "                 names=('seed_nodes',),\n"
          "             )},\n"
          "    names=('seed_nodes',),\n"
          ")"
      )
      assert str(item_set) == expected_str, item_set
  
      # ItemSetDict with multiple names.
      item_set = gb.ItemSetDict(
          {
              "user": gb.ItemSet(
                  (torch.arange(0, 5), torch.arange(5, 10)),
                  names=("seed_nodes", "labels"),
              ),
              "item": gb.ItemSet(
                  (torch.arange(5, 10), torch.arange(10, 15)),
                  names=("seed_nodes", "labels"),
              ),
          }
      )
      expected_str = (
          "ItemSetDict(\n"
          "    itemsets={'user': ItemSet(\n"
          "                 items=(tensor([0, 1, 2, 3, 4]), tensor([5, 6, 7, 8, 9])),\n"
          "                 names=('seed_nodes', 'labels'),\n"
          "             ), 'item': ItemSet(\n"
          "                 items=(tensor([5, 6, 7, 8, 9]), tensor([10, 11, 12, 13, 14])),\n"
          "                 names=('seed_nodes', 'labels'),\n"
          "             )},\n"
          "    names=('seed_nodes', 'labels'),\n"
          ")"
      )
      assert str(item_set) == expected_str, item_set
  
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 17 for calling a global function with example usage: test_ItemSetDict_repr() without return types