code: def backward(ctx, grad_output):
      (rois,) = ctx.saved_tensors
      output_size = ctx.output_size
      spatial_scale = ctx.spatial_scale
      sampling_ratio = ctx.sampling_ratio
      bs, ch, h, w = ctx.input_shape
      grad_input = torch.ops.detectron2.roi_align_rotated_backward(
          grad_output,
          rois,
          spatial_scale,
          output_size[0],
          output_size[1],
          bs,
          ch,
          h,
          w,
          sampling_ratio,
      )
      return grad_input, None, None, None, None, None
  
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 2 for calling the _ROIAlignRotated obj's underlying member method code with example usage: obj.backward(ctx, grad_output) and returns: grad_input,  None,  None,  None,  None,  None