code: def paramstopot(thresh, shape, scale):
      """transform shape scale for peak over threshold
  
      y = x-u|x>u ~ GPD(k, sigma-k*u) if x ~ GPD(k, sigma)
      notation of de Zea Bermudez, Kotz
      k, sigma is shape, scale
      """
      return shape, scale - shape * thresh
  
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 1 for calling a global function with example usage: paramstopot(thresh, shape, scale) and returns: shape,  unknown