class_docstr: Tests the main functions in the library.
class_docstr_tok: ["Tests","the","main","functions","in","the","library","."]
docstr: Tests StratifiedBootstrap.
docstr_tok: ["Tests","StratifiedBootstrap","."]
code: def test_stratified_bootstrap(self, task_bootstrap):
      """Tests StratifiedBootstrap."""
      bs = rly.StratifiedBootstrap(
          self._x, y=self._y, z=self._z, task_bootstrap=task_bootstrap
      )
      for data, kwdata in bs.bootstrap(5):
          index = bs.index
          self.assertLen(data, 1)
          self.assertLen(list(kwdata.keys()), 2)
          np.testing.assert_array_equal(self._x[index], data[0])
          np.testing.assert_array_equal(self._y[index], kwdata["y"])
          np.testing.assert_array_equal(self._z[index], kwdata["z"])
          np.testing.assert_array_equal(self._y[index], bs.y)
          np.testing.assert_array_equal(self._z[index], 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 2 for calling the LibraryTest obj's underlying member method code with example usage: obj.test_stratified_bootstrap(task_bootstrap) without return types