code: def test_box_convert_xywh_to_xywha_tensor(self):
      for dtype in [torch.float32, torch.float64]:
          box = torch.tensor(
              [[30, 40, 70, 60], [30, 40, 60, 70], [-1, -1, 2, 2]],
              dtype=dtype,
          )
          output = self._convert_xywh_to_xywha(box)
          self.assertEqual(output.dtype, box.dtype)
          expected = torch.tensor(
              [
                  [65, 70, 70, 60, 0],
                  [60, 75, 60, 70, 0],
                  [0, 0, 2, 2, 0],
              ],
              dtype=dtype,
          )
  
          self.assertTrue(
              torch.allclose(output, expected, atol=1e-6),
              "output={}".format(output),
          )
  
imports: import json
  import math
  import numpy
  import unittest
  import torch
  from detectron2.structures import Boxes, BoxMode, pairwise_ioa, pairwise_iou
  from detectron2.utils.testing import reload_script_model
label_desc: Use image node_id 14 for calling the TestBoxMode obj's underlying member method code with example usage: obj.test_box_convert_xywh_to_xywha_tensor() without return types