class_docstr: All about an annotation such as Mask, Category, BoundingBox.
class_docstr_tok: ["All","about","an","annotation","such","as","Mask",",","Category",",","BoundingBox","."]
code: def get_shifted_object_annotation(self):
      if self.mask:
          return ObjectAnnotation(
              bbox=self.bbox.get_shifted_box().to_xyxy(),
              category_id=self.category.id,
              bool_mask=self.mask.get_shifted_mask().bool_mask,
              category_name=self.category.name,
              shift_amount=[0, 0],
              full_shape=self.mask.get_shifted_mask().full_shape,
          )
      else:
          return ObjectAnnotation(
              bbox=self.bbox.get_shifted_box().to_xyxy(),
              category_id=self.category.id,
              bool_mask=None,
              category_name=self.category.name,
              shift_amount=[0, 0],
              full_shape=None,
          )
  
imports: import copy
  from typing import Dict, List, Optional
  import numpy
  from sahi.utils.coco import CocoAnnotation, CocoPrediction
  from sahi.utils.cv import get_bbox_from_bool_mask, get_bool_mask_from_coco_segmentation, get_coco_segmentation_from_bool_mask
  from sahi.utils.shapely import ShapelyAnnotation
label_desc: Use image node_id 14 for calling the ObjectAnnotation obj's underlying member method code with example usage: obj.get_shifted_object_annotation() and returns: ObjectAnnotation, ObjectAnnotation