code: def test_ufunc_override(Poly):
      p = Poly([1, 2, 3])
      x = np.ones(3)
      assert_raises(TypeError, np.add, p, x)
      assert_raises(TypeError, np.add, x, p)
  
imports: import operator
  from numbers import Number
  import pytest
  import numpy
  from numpy.polynomial import Polynomial, Legendre, Chebyshev, Laguerre, Hermite, HermiteE
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_
  from numpy.polynomial.polyutils import RankWarning
label_desc: Use image node_id 31 for calling a global function with example usage: test_ufunc_override(Poly) without return types