class_docstr: Test Padding utility functions
class_docstr_tok: ["Test","Padding","utility","functions"]
docstr: Test same padding function.
docstr_tok: ["Test","same","padding","function","."]
code: def test_same_padding(self):
      """
      Test same padding function.
      """
      in_height = 4
      in_width = 4
      stride_h = 1
      stride_w = 1
      filter_height = 1
      filter_width = 1
      x = torch.Tensor(1, 3, 4, 4)
      out = same_padding(
          x=x,
          in_height=in_height,
          in_width=in_width,
          stride_h=stride_h,
          stride_w=stride_w,
          filter_height=filter_height,
          filter_width=filter_width,
      )
      print(out.shape)
      self.assertTrue(out.shape == torch.Size([1, 3, 4, 4]))
  
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 6 for calling the TestPaddingFunctions obj's underlying member method code with example usage: obj.test_same_padding() without return types