code: def test_OnDiskDataset_Graph_Exceptions():
      """Test exceptions in parsing graph topology."""
      with tempfile.TemporaryDirectory() as test_dir:
          # Invalid graph type.
          yaml_content = """
              graph_topology:
                type: CSRSamplingGraph
                path: /path/to/graph
          """
          write_yaml_file(yaml_content, test_dir)
  
          with pytest.raises(
              pydantic.ValidationError,
              match="1 validation error for OnDiskMetaData",
          ):
              _ = gb.OnDiskDataset(
                  test_dir, force_preprocess=False
              ).load()
  
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 15 for calling a global function with example usage: test_OnDiskDataset_Graph_Exceptions() without return types