code: def __init__(self, dim=1):
      super().__init__()
      self.dim = dim
  
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 MeanPooler object from inherited base classes: nn with example: obj = MeanPooler(dim)