code: def test_OnDiskDataset_TVTSet_ItemSetDict_names():
      """Test TVTSet which returns ItemSet with IDs, labels and corresponding names."""
      with tempfile.TemporaryDirectory() as test_dir:
          train_ids = np.arange(1000)
          train_ids_path = os.path.join(test_dir, "train_ids.npy")
          np.save(train_ids_path, train_ids)
          train_labels = np.random.randint(0, 10, size=1000)
          train_labels_path = os.path.join(test_dir, "train_labels.npy")
          np.save(train_labels_path, train_labels)
  
          yaml_content = f"""
              tasks:
                - name: node_classification
                  num_classes: 10
                  train_set:
                    - type: "author:writes:paper"
                      data:
                        - name: seed_nodes
                          format: numpy
                          in_memory: true
                          path: {train_ids_path}
                        - name: labels
                          format: numpy
                          in_memory: true
                          path: {train_labels_path}
                        - format: numpy
                          in_memory: true
                          path: {train_labels_path}
          """
          dataset = write_yaml_and_load_dataset(yaml_content, test_dir)
  
          # Verify train set.
          train_set = dataset.tasks[0].train_set
          assert len(train_set) == 1000
          assert isinstance(train_set, gb.ItemSetDict)
          for i, item in enumerate(train_set):
              assert isinstance(item, dict)
              assert "author:writes:paper" in item
              id, label, _ = item["author:writes:paper"]
              assert id == train_ids[i]
              assert label == train_labels[i]
          assert train_set.names == ("seed_nodes", "labels", None)
          train_set = None
  
imports: import os
  import pickle
  import random
  import re
  import tempfile
  import unittest
  import warnings
  import numpy
  import pandas
  import pydantic
  import pytest
  import torch
  import yaml
  from dgl import graphbolt
  from dgl.base import DGLWarning
  from ..None import gb_test_utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_OnDiskDataset_TVTSet_ItemSetDict_names() without return types