code: def forward(inputs):
      in_size = inputs.size()
      return inputs.view((in_size[0], in_size[1], -1)).mean(dim=2)
  
imports: import sys
  from collections import OrderedDict
  from functools import partial
  import torch.nn
  import torch
  from .mynn import Norm2d
label_desc: Use image node_id 1 for calling the GlobalAvgPool2d obj's underlying member method code with example usage: obj.forward(inputs) and returns: inputs