code: def __init__(self, n_r, d_in, d_middle=None, d_out=None):
      super(PoolAggregate, self).__init__()
      if not d_middle:
          d_middle = d_in
      if not d_out:
          d_out = d_in
  
      self.d_in = d_in
      self.d_middle = d_middle
      self.d_out = d_out
      self.act = nn.Swish()
  
      self.n_r = n_r
      self.aggs = self._build_aggs()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new PoolAggregate object from inherited base classes: nn with example: obj = PoolAggregate(n_r, d_in, d_middle, d_out)