code: def meanexcess_emp(data):
      datasorted = np.sort(data).astype(float)
      meanexcess = (datasorted[::-1].cumsum()) / np.arange(
          1, len(data) + 1
      ) - datasorted[::-1]
      meancont = (datasorted[::-1].cumsum()) / np.arange(
          1, len(data) + 1
      )
      meanexcess = meanexcess[::-1]
      return datasorted, meanexcess, meancont[::-1]
  
imports: import numpy
  from scipy import stats
  from scipy.special import comb
  from scipy.stats.distributions import rv_continuous
  import matplotlib.pyplot
  from numpy import where, inf
  from numpy import abs
label_desc: Use image node_id 6 for calling a global function with example usage: meanexcess_emp(data) and returns: datasorted,  meanexcess,  meancont