code: def __init__(self, dim=1, cls_index=0):
      super().__init__()
      self.dim = dim
      self.cls_index = cls_index
  
imports: from typing import Any, List
  import torch
  import torch.nn
  from mmf.common.registry import registry
label_desc: Use image node_id 1 to create a new ClsPooler object from inherited base classes: nn with example: obj = ClsPooler(dim, cls_index)