code: def __init__(self, gate_nn=None, nn=None, aggr="add"):
      super(AttentionPool, self).__init__(aggr=aggr)
      if gate_nn is None:
          self.gate_nn = tf.layers.Dense(1, use_bias=False)
      else:
          self.gate_nn = gate_nn
      self.nn = nn
      self.aggr = aggr
  
imports: import tensorflow
  from tf_euler.python.euler_ops import mp_ops
  from tf_euler.python.graph_pool.base_pool import Pooling
label_desc: Use image node_id 1 to create a new AttentionPool object from inherited base classes: Pooling with example: obj = AttentionPool(gate_nn, nn, aggr)