def METHOD_NAME(test_case):
    input = flow.randn(4, 3, 10, 10)
    weight = flow.randn(5, 3, 3, 3)
    offset = flow.randn(4, 18, 8, 8)
    with test_case.assertRaises(RuntimeError) as ctx:
        out = flow.nn.functional.deform_conv2d(
            input, offset, weight, dilation=(-1, 0)
        )
    test_case.assertTrue("The dilation must be greater than" in str(ctx.exception))