class_docstr: Reduce the dim of a temporal tensor, e.g. output of RNN, to a vector.
  
  # Arguments
      reduction_type: String. 'flatten', 'global_max' or 'global_avg'. If left
          unspecified, it will be tuned automatically.
class_docstr_tok: ["Reduce","the","dim","of","a","temporal","tensor",",","e.g",".","output","of","RNN",",","to","a","vector",".","#","Arguments","reduction_type",":","String",".","'flatten","'",",","'global_max","'","or","'global_avg","'",".","If","left","unspecified",",","it","will","be","tuned","automatically","."]
code: def global_avg(self, input_node):
      return tf.math.reduce_mean(input_node, axis=-2)
  
imports: from typing import Optional
  import tensorflow
  from tensorflow import nest
  from tensorflow.keras import layers
  from autokeras.engine import block
  from autokeras.utils import layer_utils
  from autokeras.utils import utils
label_desc: Use image node_id 3 for calling the TemporalReduction obj's underlying member method code with example usage: obj.global_avg(input_node) and returns: tf