code: def check_packbits(self, data, xp, dtype, bitorder="big"):
      # Note numpy <= 1.9 raises an Exception when an input array is bool.
      # See https://github.com/numpy/numpy/issues/5377
      a = xp.array(data, dtype=dtype)
      return xp.packbits(a, bitorder=bitorder)
  
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 1 for calling the TestPacking obj's underlying member method code with example usage: obj.check_packbits(data, xp, dtype, bitorder) and returns: xp