code: def testFilterPadding(self):
      # Use Random input data and check that the beginning and the end
      # are padded with the first and last values in the input vector.
      x1 = [12, 2, 5, 6, 51, 45646, 614]
      x2 = [6, 51, 45646, 614, 1, 14, 6, 7]
      x3 = [16, 51, 45, 41, 45, 51, 45, 4, 51, 45, 6, 46, 3]
  
      y1 = std.MedianFilter(kernelSize=3)(x1)
      y2 = std.MedianFilter(kernelSize=5)(x2)
      y3 = std.MedianFilter(kernelSize=7)(x3)
      self.assertEqual(y1[0], x1[0])
      self.assertEqual(y1[len(x1) - 1], x1[len(x1) - 1])
      self.assertEqual(y2[0], x2[0])
      self.assertEqual(y2[len(x2) - 1], x2[len(x2) - 1])
      self.assertEqual(y3[0], x3[0])
      self.assertEqual(y3[len(x3) - 1], x3[len(x3) - 1])
  
file_path: essentia/test/src/unittests/filters/test_medianfilter.py
imports: from essentia_test import *
  from math import *
  from numpy import *
  from essentia import *
  from math import *
  import essentia.standard
  import statistics
label_desc: Use image node_id 7 for calling the TestMedianFilter obj's underlying member method code with example usage: obj.testFilterPadding() without return types