code: def shift_rbboxes(bboxes: torch.Tensor, offset: Sequence[int]):
      """Shift rotated bboxes with offset.
  
      Args:
          bboxes (Tensor): The rotated bboxes need to be translated.
              With shape (n, 5), which means (x, y, w, h, a).
          offset (Sequence[int]): The translation offsets with shape of (2, ).
      Returns:
          Tensor: Shifted rotated bboxes.
      """
      offset_tensor = bboxes.new_tensor(offset)
      shifted_bboxes = bboxes.clone()
      shifted_bboxes[:, 0:2] = shifted_bboxes[:, 0:2] + offset_tensor
      return shifted_bboxes
  
imports: from typing import Sequence, Tuple
  import torch
  from mmcv.ops import batched_nms
  from mmengine.structures import InstanceData
  from mmdet.structures import DetDataSample, SampleList
label_desc: Use image node_id 1 for calling a global function with example usage: shift_rbboxes(bboxes, offset) and returns: shifted_bboxes