code: def test_throw_exception():
      cnn = CNN(epochs=1, log_interval=1000, seed=0)
      try:
          cnn.fit(train_idx=[0, 1], train_labels=[1])
      except Exception as e:
          assert "same length" in str(e)
          with pytest.raises(ValueError) as e:
              cnn.fit(train_idx=[0, 1], train_labels=[1])
  
file_path: cleanlab/tests/test_model_pytorch_cnn.py
imports: from cleanlab.experimental.mnist_pytorch import CNN, SKLEARN_DIGITS_TEST_SIZE, SKLEARN_DIGITS_TRAIN_SIZE
  import cleanlab
  import numpy
  from sklearn.metrics import accuracy_score
  from sklearn.datasets import load_digits
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_throw_exception() without return types