docstr: Global average pooling over the input's spatial dimensions
docstr_tok: ["Global","average","pooling","over","the","input","'s","spatial","dimensions"]
code: def __init__(self, flatten=False):
      """Global average pooling over the input's spatial dimensions"""
      super().__init__()
      self.flatten = flatten
  
imports: from typing import Union, Dict
  import torch
  import torch.nn.functional
  from torch.nn.modules.module import _IncompatibleKeys
  from torch import Tensor, nn
label_desc: Use image node_id 1 to create a new GlobalMaxPool2d object from inherited base classes: nn with example: obj = GlobalMaxPool2d(flatten)