code: def int_unittest(self, horizon):
      agent, environment = self.prepare(
          reward_estimation=dict(horizon=horizon)
      )
  
      states = environment.reset()
      actions = agent.act(states=states)
      states, terminal, reward = environment.execute(actions=actions)
      agent.observe(terminal=terminal, reward=reward)
      horizon1 = agent.model.reward_horizon.value().numpy().item()
  
      actions = agent.act(states=states)
      states, terminal, reward = environment.execute(actions=actions)
      agent.observe(terminal=terminal, reward=reward)
      horizon2 = agent.model.reward_horizon.value().numpy().item()
      if not isinstance(horizon, dict) or horizon["type"] == "constant":
          self.assertEqual(horizon2, horizon1)
      else:
          self.assertNotEqual(horizon2, horizon1)
  
      agent.close()
      environment.close()
  
      self.finished_test()
  
file_path: tensorforce/test/test_parameters.py
imports: import unittest
  from test.unittest_base import UnittestBase
label_desc: Use image node_id 2 for calling the TestParameters obj's underlying member method code with example usage: obj.int_unittest(horizon) without return types