code: def test_pack_invalid_array(self):
      fa = cupy.array([10, 20, 30], dtype=float)
      pytest.raises(TypeError, cupy.packbits, fa)
  
file_path: cupy/tests/cupy_tests/binary_tests/test_packing.py
imports: import numpy
  import unittest
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 7 for calling the TestPacking obj's underlying member method code with example usage: obj.test_pack_invalid_array() without return types