docstr: Convert from [center_x center_y w h] format to [x1 y1 x2 y2].
docstr_tok: ["Convert","from","[","center_x","center_y","w","h","]","format","to","[","x1","y1","x2","y2","]","."]
code: def bbox_xywh_to_xyxy(self, boxes):
      """
      Convert from [center_x center_y w h] format to [x1 y1 x2 y2].
      """
      w, h = boxes[:, 2], boxes[:, 3]
      boxes[:, 0] -= w / 2.0  # x1 = center_x - width/2
      boxes[:, 1] -= h / 2.0  # y1 = center_y - height/2
      boxes[:, 2] = boxes[:, 0] + w  # x2 = x1 + width
      boxes[:, 3] = boxes[:, 1] + h  # y2 = y1 + height
      return boxes
  
file_path: pytorch/caffe2/python/operator_test/roi_align_rotated_op_test.py
imports: from caffe2.python import core, workspace
  from hypothesis import given
  import caffe2.python.hypothesis_test_util
  import hypothesis.strategies
  import numpy
  import copy
label_desc: Use image node_id 1 for calling the RoIAlignRotatedOp obj's underlying member method code with example usage: obj.bbox_xywh_to_xyxy(boxes) and returns: boxes