code: def __init__(self, fun):
      super().__init__()
      self.pool_type = fun
      self.pool_fun = gnn.GraphPool()
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  import pgl
  import pgl.nn
  from pgl.nn import functional
  from mol_encoder import AtomEncoder, BondEncoder
label_desc: Use image node_id 1 to create a new GlobalPool object from inherited base classes: nn with example: obj = GlobalPool(fun)