code: def test_zero_diag_error():
      # The Levinson-Durbin implementation fails when the diagonal is zero.
      random = np.random.RandomState(1234)
      n = 4
      c = random.randn(n)
      r = random.randn(n)
      y = random.randn(n)
      c[0] = 0
      assert_raises(np.linalg.LinAlgError, solve_toeplitz, (c, r), b=y)
  
file_path: catboost/contrib/python/scipy/py3/scipy/linalg/tests/test_solve_toeplitz.py
imports: import numpy
  from scipy.linalg._solve_toeplitz import levinson
  from scipy.linalg import solve, toeplitz, solve_toeplitz
  from numpy.testing import assert_equal, assert_allclose
  import pytest
  from pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_zero_diag_error() without return types