code: def core_test_binarize(
      self,
      raw,
      shape,
      modulus,
      bitlen,
      ensure_positive_interpretation,
  ) -> None:
      def as_bits(x: int, min_bitlength):
          bits = [int(b) for b in "{0:b}".format(x)]
          bits = [0] * (min_bitlength - len(bits)) + bits
          return list(reversed(bits))
  
      expected = np.array(
          [as_bits((modulus + x) % modulus, bitlen) for x in raw]
      )
      expected = expected.reshape(shape + (bitlen,))
  
      x = int100factory.tensor(np.array(raw).reshape(shape))
      epi = ensure_positive_interpretation
      actual = x.bits(ensure_positive_interpretation=epi).to_native()
  
      np.testing.assert_array_equal(actual, expected)
  
file_path: tf-encrypted/tf_encrypted/tensor/int100_test.py
imports: import math
  import random
  import unittest
  import numpy
  import tensorflow
  from tf_encrypted.tensor import int100factory
label_desc: Use image node_id 1 for calling the TestInt100Tensor obj's underlying member method code with example usage: obj.core_test_binarize(raw, shape, modulus, bitlen, ensure_positive_interpretation) and returns: list