code: def test_roundtrip(self, bitorder, count):
      if count < 0:
          # one extra zero of padding
          cutoff = count - 1
      else:
          cutoff = count
      # test complete invertibility of packbits and unpackbits with count
      packed = np.packbits(self.x, bitorder=bitorder)
      unpacked = np.unpackbits(packed, count=count, bitorder=bitorder)
      assert_equal(unpacked.dtype, np.uint8)
      assert_array_equal(unpacked, self.padded1[:cutoff])
  
file_path: numpy/numpy/lib/tests/test_packbits.py
imports: import numpy
  from numpy.testing import assert_array_equal, assert_equal, assert_raises
  import pytest
  from itertools import chain
label_desc: Use image node_id 1 for calling the TestCount obj's underlying member method code with example usage: obj.test_roundtrip(bitorder, count) without return types