code: def forward(self, x):
      return th.mean(x, dim=[-2, -1])
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 2 for calling the GlobalAvgPool obj's underlying member method code with example usage: obj.forward(x) and returns: th