    def test_is_static_pad(self):
        """
        Test get_same_padding function.
        """
        kernel = 3
        stride = 1
        dilation = 1
        self.assertEqual(is_static_pad(kernel, stride, dilation), True)

        kernel = 3
        stride = 1
        dilation = 2
        self.assertEqual(is_static_pad(kernel, stride, dilation), True)
Test get_same_padding function.
tests/unittests/models/layers/test_padding_functions.py