class_docstr: Test Padding utility functions
class_docstr_tok: ["Test","Padding","utility","functions"]
docstr: Test pad same function.
docstr_tok: ["Test","pad","same","function","."]
code: def test_pad_same(self):
      """
      Test pad same function.
      """
      x = torch.Tensor(1, 3, 4, 4)
      k = [3, 3]
      s = [1, 1]
      d = [1, 1]
      value = 128.0
      out = pad_same(x, k, s, d, value)
      self.assertEqual(out.shape, torch.Size((1, 3, 6, 6)))
      self.assertEqual(out[0, 0, 0, 0], 128.0)
  
file_path: towhee/tests/unittests/models/layers/test_padding_functions.py
imports: import unittest
  import torch
  from towhee.models.layers.padding_functions import get_padding, get_same_padding, is_static_pad, pad_same, get_padding_value, same_padding
label_desc: Use image node_id 5 for calling the TestPaddingFunctions obj's underlying member method code with example usage: obj.test_pad_same() without return types