code: def forward(
      ctx, input, roi, output_size, spatial_scale, sampling_ratio
  ):
      ctx.save_for_backward(roi)
      ctx.output_size = _pair(output_size)
      ctx.spatial_scale = spatial_scale
      ctx.sampling_ratio = sampling_ratio
      ctx.input_shape = input.size()
      output = torch.ops.detectron2.roi_align_rotated_forward(
          input,
          roi,
          spatial_scale,
          output_size[0],
          output_size[1],
          sampling_ratio,
      )
      return output
  
file_path: detectron2/detectron2/layers/roi_align_rotated.py
imports: import torch
  from torch import nn
  from torch.autograd import Function
  from torch.autograd.function import once_differentiable
  from torch.nn.modules.utils import _pair
label_desc: Use image node_id 1 for calling the _ROIAlignRotated obj's underlying member method code with example usage: obj.forward(ctx, input, roi, output_size, spatial_scale, sampling_ratio) and returns: output