code: def __init__(self, dim=(2, 3), keepdim=False):
      super(GlobalAvgPool2d, self).__init__()
      self.dim = dim
      self.keepdim = keepdim
  
imports: from torch import nn
label_desc: Use image node_id 1 to create a new GlobalAvgPool2d object from inherited base classes: nn with example: obj = GlobalAvgPool2d(dim, keepdim)