code: def __init__(self, pool_type, kernel_size, stride, padding):
      super().__init__()
      if pool_type.lower() == "max":
          self.pool = nn.MaxPool2d(kernel_size, stride, padding)
      elif pool_type.lower() == "avg":
          self.pool = nn.AvgPool2d(
              kernel_size, stride, padding, count_include_pad=False
          )
      else:
          raise ValueError()
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new Pool object from inherited base classes: nn with example: obj = Pool(pool_type, kernel_size, stride, padding)