code: def test_center_expand(self):
      # center has no effect if expand=True because it only affects shifting
      image, coords, h, w = self.randomData(h=5, w=8)
      angle = np.random.randint(360)
      rot1 = RotationTransform(h, w, angle, expand=True, center=None)
      rot2 = RotationTransform(h, w, angle, expand=True, center=(0, 0))
      rot3 = RotationTransform(h, w, angle, expand=True, center=(h, w))
      rot4 = RotationTransform(h, w, angle, expand=True, center=(2, 5))
      for r1 in [rot1, rot2, rot3, rot4]:
          for r2 in [rot1, rot2, rot3, rot4]:
              self.assertEqualsArrays(
                  r1.apply_image(image), r2.apply_image(image)
              )
              self.assertEqualsArrays(
                  r1.apply_coords(coords), r2.apply_coords(coords)
              )
  
file_path: detectron2/tests/data/test_rotation_transform.py
imports: import numpy
  import unittest
  from detectron2.data.transforms.transform import RotationTransform
label_desc: Use image node_id 7 for calling the TestRotationTransform obj's underlying member method code with example usage: obj.test_center_expand() without return types