def METHOD_NAME(self, input_param, input_shape):
    # test whether support torchscript
    returned_layers = [1]
    anchor_generator = AnchorGeneratorWithAnchorShape(
        feature_map_scales=(1, 2), base_anchor_shapes=((8,) * input_param["spatial_dims"],)
    )
    detector = retinanet_resnet50_fpn_detector(
        **input_param, anchor_generator=anchor_generator, returned_layers=returned_layers
    )
    with eval_mode(detector):
        input_data = torch.randn(input_shape)
        test_script_save(detector.network, input_data)