code: def test_trimcoef_bool(self):
      for xp in (numpy, cupy):
          a = testing.shaped_random((5,), xp, bool)
          with pytest.raises(ValueError):
              xp.polynomial.polyutils.trimcoef(a)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 4 for calling the TestTrimcoefInvalid obj's underlying member method code with example usage: obj.test_trimcoef_bool() without return types