docs: def median(arrays, masks=None, dtype=None, out=None,
             zeros=None, scales=None,
             weights=None):
      """Combine arrays using the median, with masks.
  
      Arrays and masks are a list of array objects. All input arrays
      have the same shape. If present, the masks have the same shape
      also.
  
      The function returns an array with one more dimension than the
      inputs and with size (3, shape). out[0] contains the mean,
      out[1] the variance and out[2] the number of points used.
  
      :param arrays: a list of arrays
      :param masks: a list of mask arrays, True values are masked
      :param dtype: data type of the output
      :param out: optional output, with one more axis than the input arrays
  
      :return: median, variance of the median and number of points stored
      """
  
      return generic_combine(intl_combine.median_method(), arrays, masks=masks,
                             dtype=dtype, out=out,
                             zeros=zeros, scales=scales, weights=weights)