class_docstr: Tests for LAX-backed Numpy operators.
code: def testBitwiseCount(self, shape, dtype):
      # np.bitwise_count added after numpy 1.26, but
      # np_scalar.bit_count() is available before that.
      np_fun = getattr(
          np,
          "bitwise_count",
          np.vectorize(
              lambda x: np.ravel(x)[0].bit_count(), otypes=["uint8"]
          ),
      )
      rng = jtu.rand_fullrange(self.rng())
      args_maker = lambda: [rng(shape, dtype)]
      self._CheckAgainstNumpy(np_fun, jnp.bitwise_count, args_maker)
      self._CompileAndCheck(jnp.bitwise_count, args_maker)
  
imports: import collections
  import functools
  from functools import partial
  import itertools
  import operator
  from typing import NamedTuple
  from unittest import SkipTest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import jax
  import jax.ops
  from jax import lax
  from jax import numpy
  from jax._src import config
  from jax._src import dtypes
  from jax._src import test_util
label_desc: Use image node_id 9 for calling the JaxNumpyOperatorTests obj's underlying member method code with example usage: obj.testBitwiseCount(shape, dtype) without return types