code: def conv2d_same(
      x: torch.Tensor,
      weight: torch.Tensor,
      bias: Optional[torch.Tensor] = None,
      stride: Tuple[int, int] = (1, 1),
      padding: Tuple[int, int] = (0, 0),
      dilation: Tuple[int, int] = (1, 1),
      groups: int = 1,
  ):
      """
      Tensorflow like 'SAME' convolution function for 2D convolutions.
      """
      x = pad_same(x, weight.shape[-2:], stride, dilation)
      _ = padding
      return F.conv2d(x, weight, bias, stride, (0, 0), dilation, groups)
  
file_path: towhee/towhee/models/layers/conv2d_same.py
imports: from typing import Tuple, Optional, Union
  import torch
  from torch import nn
  import torch.nn.functional
  from torch.nn.common_types import _size_2_t
  from towhee.models.layers.padding_functions import pad_same
label_desc: Use image node_id 1 for calling a global function with example usage: conv2d_same(x, weight, bias, stride, padding, dilation, groups) and returns: F