class_docstr: Median Smoothing 2D.
  
  :param kernel_size: aperture linear size; must be odd and greater than 1.
  :param stride: stride of the convolution.
code: def forward(self, x):
      x = F.pad(x, pad=self.padding, mode="reflect")
      x = x.unfold(2, self.kernel_size, self.stride)
      x = x.unfold(3, self.kernel_size, self.stride)
      x = x.contiguous().view(x.shape[:4] + (-1,)).median(dim=-1)[0]
      return x
  
imports: import math
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn.modules.utils import _quadruple
  from .base import Processor
label_desc: Use image node_id 2 for calling the MedianSmoothing2D obj's underlying member method code with example usage: obj.forward(x) and returns: x