code: def test_exceptions(self):
      n = 100
      c = self.rng.normal(size=n)
      r = self.rng.normal(size=2 * n)
      x = self.rng.normal(size=n)
      assert_raises(ValueError, matmul_toeplitz, (c, r), x, True)
  
      n = 100
      c = self.rng.normal(size=n)
      r = self.rng.normal(size=n)
      x = self.rng.normal(size=n - 1)
      assert_raises(ValueError, matmul_toeplitz, (c, r), x, True)
  
      n = 100
      c = self.rng.normal(size=n)
      r = self.rng.normal(size=n // 2)
      x = self.rng.normal(size=n // 2 - 1)
      assert_raises(ValueError, matmul_toeplitz, (c, r), x, True)
  
file_path: scipy/scipy/linalg/tests/test_matmul_toeplitz.py
imports: import numpy
  from scipy.linalg import toeplitz, matmul_toeplitz
  from pytest import raises
  from numpy.testing import assert_allclose
label_desc: Use image node_id 4 for calling the TestMatmulToeplitz obj's underlying member method code with example usage: obj.test_exceptions() without return types