code: def create_conv2d_pad(
      in_chs: int, out_chs: int, kernel_size: int, **kwargs
  ) -> Union[nn.Conv2d, Conv2dSame]:
      padding = kwargs.pop("padding", "")
      kwargs.setdefault("bias", False)
      padding, is_dynamic = get_padding_value(
          padding, kernel_size, **kwargs
      )
      if is_dynamic:
          return Conv2dSame(in_chs, out_chs, kernel_size, **kwargs)
      else:
          if "num_experts" in kwargs:
              kwargs.pop("num_experts", "")
          return nn.Conv2d(
              in_chs, out_chs, kernel_size, padding=padding, **kwargs
          )
  
imports: from typing import Union
  from torch import nn
  from towhee.models.layers.conv2d_same import Conv2dSame
  from towhee.models.layers.padding_functions import get_padding_value
label_desc: Use image node_id 1 for calling a global function with example usage: create_conv2d_pad(in_chs, out_chs, kernel_size) and returns: Conv2dSame, nn