class_docstr: Selectable global pooling layer with dynamic input kernel size
      
class_docstr_tok: ["Selectable","global","pooling","layer","with","dynamic","input","kernel","size"]
code: def is_identity(self):
      return not self.pool_type
  
imports: from typing import Optional, Tuple, Union
  import torch
  import torch.nn
  import torch.nn.functional
  from .format import get_spatial_dim, get_channel_dim
label_desc: Use image node_id 2 for calling the SelectAdaptivePool2d obj's underlying member method code with example usage: obj.is_identity() and returns: unknown