class_docstr: Base class for networks using Tensorforce layers.
code: def _recursive_temporal_layers(*, layer, fn):
      if isinstance(layer, TemporalLayer):
          fn(layer)
      elif isinstance(layer, Block):
          for block_layer in layer.this_submodules:
              LayerbasedNetwork._recursive_temporal_layers(
                  layer=block_layer, fn=fn
              )
      elif isinstance(layer, Reuse):
          LayerbasedNetwork._recursive_temporal_layers(
              layer=layer.reused_layer, fn=fn
          )
  
imports: from collections import Counter
  import tensorflow
  from tensorforce import TensorforceError
  from tensorforce.core import ArrayDict, Module, SignatureDict, TensorDict, TensorSpec, TensorsSpec, tf_function, tf_util
  from tensorforce.core.layers import Block, Layer, layer_modules, MultiInputLayer, NondeterministicLayer, PreprocessingLayer, Register, Reuse, StatefulLayer, TemporalLayer
  from tensorforce.core.parameters import Parameter
label_desc: Use image node_id 4 for calling the LayerbasedNetwork obj's underlying member method code with example usage: obj._recursive_temporal_layers() without return types