code: def percentileofscore(data, score):
      """Return the percentile-position of score relative to data.
  
      score: Array of scores at which the percentile is computed.
  
      Return percentiles (0-100).
  
      Example
              r = randn(50)
          x = linspace(-2,2,100)
          percentileofscore(r,x)
  
      Raise an error if the score is outside the range of data.
      """
      cdf = empiricalcdf(data)
      interpolator = interpolate.interp1d(np.sort(data), np.sort(cdf))
      return interpolator(score) * 100.0
  
file_path: statsmodels/statsmodels/sandbox/stats/stats_dhuard.py
imports: import scipy.interpolate
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: percentileofscore(data, score) and returns: unknown