class_docstr: Tests the main functions in the library.
class_docstr_tok: ["Tests","the","main","functions","in","the","library","."]
docstr: Tests StratifiedIndependentBootstrap.
docstr_tok: ["Tests","StratifiedIndependentBootstrap","."]
code: def test_stratified_independent_bootstrap(self):
      """Tests StratifiedIndependentBootstrap."""
      bs = rly.StratifiedIndependentBootstrap(
          self._x, y=self._y, z=self._z
      )
      for data, kwdata in bs.bootstrap(2):
          self.assertIsInstance(bs.index, tuple)
          index_x, kw_index = bs.index
          self.assertLen(data, 1)
          self.assertLen(list(kwdata.keys()), 2)
          np.testing.assert_array_equal(self._x[index_x[0]], data[0])
          np.testing.assert_array_equal(
              self._y[kw_index["y"]], kwdata["y"]
          )
          np.testing.assert_array_equal(
              self._z[kw_index["z"]], kwdata["z"]
          )
          np.testing.assert_array_equal(self._y[kw_index["y"]], bs.y)
          np.testing.assert_array_equal(self._z[kw_index["z"]], bs.z)
  
file_path: rliable/tests/rliable/library_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import rliable.library
  import rliable.metrics
label_desc: Use image node_id 3 for calling the LibraryTest obj's underlying member method code with example usage: obj.test_stratified_independent_bootstrap() without return types