code: def test_roundtrip_axis(self, bitorder, count):
      if count < 0:
          # one extra zero of padding
          cutoff = count - 1
      else:
          cutoff = count
      packed0 = np.packbits(self.x, axis=0, bitorder=bitorder)
      unpacked0 = np.unpackbits(
          packed0, axis=0, count=count, bitorder=bitorder
      )
      assert_equal(unpacked0.dtype, np.uint8)
      assert_array_equal(
          unpacked0, self.padded2[:cutoff, : self.x.shape[1]]
      )
  
      packed1 = np.packbits(self.x, axis=1, bitorder=bitorder)
      unpacked1 = np.unpackbits(
          packed1, axis=1, count=count, bitorder=bitorder
      )
      assert_equal(unpacked1.dtype, np.uint8)
      assert_array_equal(
          unpacked1, self.padded2[: self.x.shape[0], :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 3 for calling the TestCount obj's underlying member method code with example usage: obj.test_roundtrip_axis(bitorder, count) without return types