def METHOD_NAME(self):
    instance = {"bbox": [10, 10, 100, 100], "bbox_mode": BoxMode.XYXY_ABS}
    t = detection_utils.gen_crop_transform_with_instance((10, 10), (150, 150), instance)
    # the box center must fall into the cropped region
    self.assertTrue(t.x0 <= 55 <= t.x0 + t.w)