code: def percentile(vec, terms=None, other_vec=None):
      vec_ss = rankdata(vec, method="average") * (1.0 / len(vec))
      return scale_0_to_1(vec_ss)
  
imports: from typing import Callable
  import numpy
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 20 for calling a global function with example usage: percentile(vec, terms, other_vec) and returns: scale_0_to_1