code: def test_sepfir2d_invalid_filter():
      filt = np.array([1.0, 2.0, 4.0, 2.0, 1.0])
      image = np.random.rand(7, 9)
      # No error for odd lengths
      signal.sepfir2d(image, filt, filt[2:])
  
      # Row or column filter must be odd
      with pytest.raises(ValueError, match="odd length"):
          signal.sepfir2d(image, filt, filt[1:])
      with pytest.raises(ValueError, match="odd length"):
          signal.sepfir2d(image, filt[1:], filt)
  
      # Filters must be 1-dimensional
      with pytest.raises(ValueError, match="object too deep"):
          signal.sepfir2d(image, filt.reshape(1, -1), filt)
      with pytest.raises(ValueError, match="object too deep"):
          signal.sepfir2d(image, filt, filt.reshape(1, -1))
  
file_path: catboost/contrib/python/scipy/py3/scipy/signal/tests/test_bsplines.py
imports: import numpy
  from numpy import array
  from numpy.testing import assert_equal, assert_allclose, assert_array_equal, assert_almost_equal
  import pytest
  from pytest import raises
  import scipy.signal.bsplines
  from scipy import signal
label_desc: Use image node_id 1 for calling a global function with example usage: test_sepfir2d_invalid_filter() without return types