code: def test_type_to_id_with_etype_exception(etypes):
      with pytest.raises(Exception):
          gb.fused_csc_sampling_graph(
              None,
              None,
              node_type_to_id={"n1": 0, "n2": 1, "n3": 2},
              edge_type_to_id=etypes,
          )
  
imports: import os
  import pickle
  import re
  import tempfile
  import unittest
  import backend
  import dgl
  import dgl.graphbolt
  import pytest
  import torch
  import torch.multiprocessing
  from dgl.graphbolt.base import etype_str_to_tuple
  from scipy import sparse
  from ..None import gb_test_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_type_to_id_with_etype_exception(etypes) without return types