code: def test_layers(self):
      self.start_tests(name="layers")
  
      states = dict(
          type="float", shape=(3,), min_value=1.0, max_value=2.0
      )
      network = [
          dict(type="register", tensor="test"),
          dict(type="retrieve", tensors="test"),
          dict(
              type="retrieve",
              tensors=("state", "test"),
              aggregation="product",
          ),
      ]
      self.unittest(states=states, policy=network)
  
      states = dict(
          int_state=dict(type="int", shape=(1, 2), num_values=4),
          float_state=dict(
              type="float", shape=(3,), min_value=1.0, max_value=2.0
          ),
      )
      network = [
          dict(type="retrieve", tensors="float_state"),
          dict(
              type="block",
              name="test1",
              layers=[
                  dict(type="dense", size=4),
                  dict(
                      type="block",
                      name="test2",
                      layers=[dict(type="dense", size=4)],
                  ),
                  dict(type="reuse", layer="test2"),
                  dict(
                      type="block",
                      name="test3",
                      layers=[dict(type="lstm", size=4, horizon=2)],
                  ),
                  dict(type="reuse", layer="test2"),
              ],
          ),
      ]
      baseline = [
          dict(type="retrieve", tensors="float_state"),
          dict(type="reuse", layer="test1"),
          dict(type="reuse", layer="test2"),
      ]
      self.unittest(states=states, policy=network, baseline=baseline)
  
file_path: tensorforce/test/test_layers.py
imports: import unittest
  from test.unittest_base import UnittestBase
label_desc: Use image node_id 1 for calling the TestLayers obj's underlying member method code with example usage: obj.test_layers() without return types