code: def testRegressionMedianPart(self):
      # Manually pass a median filter through the x array below
      x = [-2, 2, 13, 16, 9, 14, 4]
  
      # Use library median calculation on 4 shifted positions
      y1 = statistics.median(x[0:3])
      y2 = statistics.median(x[1:4])
      y3 = statistics.median(x[2:5])
      y4 = statistics.median(x[3:6])
      calculated_median = [y1, y2, y3, y4]
  
      # Test with kernel = 3
      y = std.MedianFilter(kernelSize=3)(x)
  
      # Clip off the padded parts and check against above values
      y_pads_removed = y[1 : len(y) - 2]
      self.assertEqualVector(calculated_median, y_pads_removed)
  
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 8 for calling the TestMedianFilter obj's underlying member method code with example usage: obj.testRegressionMedianPart() without return types