code: def test_out_of_bound_parameter(self):
      with self.assertRaisesRegexp(
          ValueError, r"All parameters should be floats in \[0, 1\]\."
      ):
          bernoulli_py_environment.BernoulliPyEnvironment(
              [0.1, 1.2, 0.3], batch_size=1
          )
  
file_path: agents/tf_agents/bandits/environments/bernoulli_py_environment_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tf_agents.bandits.environments import bernoulli_py_environment
label_desc: Use image node_id 2 for calling the BernoulliBanditPyEnvironmentTest obj's underlying member method code with example usage: obj.test_out_of_bound_parameter() without return types