code: def test_apply_deltas_tracing(self):
      weights = (5, 5, 10, 10)
      b2b_tfm = Box2BoxTransform(weights=weights)
  
      with torch.no_grad():
          func = torch.jit.trace(
              b2b_tfm.apply_deltas,
              (torch.randn(10, 20), torch.randn(10, 4)),
          )
  
          o = func(torch.randn(10, 20), torch.randn(10, 4))
          self.assertEqual(o.shape, (10, 20))
          o = func(torch.randn(5, 20), torch.randn(5, 4))
          self.assertEqual(o.shape, (5, 20))
  
file_path: detectron2/tests/modeling/test_box2box_transform.py
imports: import logging
  import unittest
  import torch
  from detectron2.modeling.box_regression import Box2BoxTransform, Box2BoxTransformLinear, Box2BoxTransformRotated
  from detectron2.utils.testing import random_boxes
label_desc: Use image node_id 2 for calling the TestBox2BoxTransform obj's underlying member method code with example usage: obj.test_apply_deltas_tracing() without return types