code: def test_axis_count(self, kwargs):
      packed0 = np.packbits(self.x, axis=0)
      unpacked0 = np.unpackbits(packed0, axis=0, **kwargs)
      assert_equal(unpacked0.dtype, np.uint8)
      if kwargs.get("bitorder", "big") == "big":
          assert_array_equal(
              unpacked0, self.padded2[:-1, : self.x.shape[1]]
          )
      else:
          assert_array_equal(
              unpacked0[::-1, :], self.padded2[:-1, : self.x.shape[1]]
          )
  
      packed1 = np.packbits(self.x, axis=1)
      unpacked1 = np.unpackbits(packed1, axis=1, **kwargs)
      assert_equal(unpacked1.dtype, np.uint8)
      if kwargs.get("bitorder", "big") == "big":
          assert_array_equal(
              unpacked1, self.padded2[: self.x.shape[0], :-1]
          )
      else:
          assert_array_equal(
              unpacked1[:, ::-1], self.padded2[: self.x.shape[0], :-1]
          )
  
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 4 for calling the TestCount obj's underlying member method code with example usage: obj.test_axis_count(kwargs) without return types