code: def deterministic_duration_generator(self):
      while True:
          yield 10
  
file_path: agents/tf_agents/bandits/environments/piecewise_bernoulli_py_environment_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tf_agents.bandits.environments import piecewise_bernoulli_py_environment
label_desc: Use image node_id 1 for calling the PiecewiseBernoulliBanditPyEnvironmentTest obj's underlying member method code with example usage: obj.deterministic_duration_generator() without return types