code: def test_value(self):
      self.start_tests(name="value")
  
      actions = dict(
          bool_action=dict(type="bool", shape=(1,)),
          int_action1=dict(type="int", shape=(), num_values=4),
          int_action2=dict(type="int", shape=(2,), num_values=3),
          int_action3=dict(type="int", shape=(2, 1), num_values=2),
      )
  
      # State value does not affect advantage variables of main policy
      objective = "state_value"
      self.unittest(
          actions=actions,
          baseline_objective=objective,
          entropy_regularization=0.0,
      )
  
      policy = dict(network=dict(type="auto", size=8, depth=1, rnn=2))
      objective = dict(type="value", value="action")
      self.unittest(
          actions=actions,
          policy=policy,
          objective=objective,
          entropy_regularization=0.0,
      )
  
      objective = dict(type="value", value="state", huber_loss=1.0)
      self.unittest(
          actions=actions,
          baseline_objective=objective,
          entropy_regularization=0.0,
      )
  
      objective = dict(type="action_value", early_reduce=True)
      self.unittest(
          actions=actions,
          baseline_objective=objective,
          entropy_regularization=0.0,
      )
  
file_path: tensorforce/test/test_objectives.py
imports: import unittest
  from test.unittest_base import UnittestBase
label_desc: Use image node_id 4 for calling the TestObjectives obj's underlying member method code with example usage: obj.test_value() without return types