code: def test_bbox_transform_and_inverse(self):
      weights = (5, 5, 10, 10)
      src_boxes = random_boxes([10, 10, 20, 20], 1, 10)
      dst_boxes = random_boxes([10, 10, 20, 20], 1, 10)
      deltas = box_utils.bbox_transform_inv(
          src_boxes, dst_boxes, weights=weights
      )
      dst_boxes_reconstructed = box_utils.bbox_transform(
          src_boxes, deltas, weights=weights
      )
      np.testing.assert_array_almost_equal(
          dst_boxes, dst_boxes_reconstructed, decimal=5
      )
  
file_path: dense-pose/detectron/tests/test_bbox_transform.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import unittest
  from pycocotools import mask
  import detectron.utils.boxes
label_desc: Use image node_id 1 for calling the TestBboxTransform obj's underlying member method code with example usage: obj.test_bbox_transform_and_inverse() without return types