class_docstr: Tests for bin_array.
class_docstr_tok: ["Tests","for","bin_array","."]
code: def test_bin_array(
      self, array, boundaries, expected_indices, expected_bins
  ):
      indices, bins = bin_util.bin_array(array, boundaries)
      np.testing.assert_array_equal(expected_indices, indices)
      np.testing.assert_array_equal(expected_bins, bins)
  
file_path: data-validation/tensorflow_data_validation/utils/bin_util_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import pyarrow
  from tensorflow_data_validation.utils import bin_util
label_desc: Use image node_id 1 for calling the BinArrayTest obj's underlying member method code with example usage: obj.test_bin_array(array, boundaries, expected_indices, expected_bins) without return types