code: def __init__(self, output_size, spatial_scale=1.0):
      super(RoIPool, self).__init__()
  
      self.output_size = _pair(output_size)
      self.spatial_scale = float(spatial_scale)
  
file_path: lavis/lavis/common/annotator/uniformer/mmcv/ops/roi_pool.py
imports: import torch
  import torch.nn
  from torch.autograd import Function
  from torch.autograd.function import once_differentiable
  from torch.nn.modules.utils import _pair
  from ..utils import ext_loader
label_desc: Use image node_id 1 to create a new RoIPool object from inherited base classes: nn with example: obj = RoIPool(output_size, spatial_scale)