code: def meanexcess_dist(self, lb, *args, **kwds):
      # default function in expect is identity
      # need args in call
      if np.ndim(lb) == 0:
          return self.expect(lb=lb, conditional=True)
      else:
          return np.array(
              [self.expect(lb=lbb, conditional=True) for lbb in lb]
          )
  
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 7 for calling a global function with example usage: meanexcess_dist(lb) and returns: self, np