code: def _R_compat_quantile(x, probs):
      # return np.percentile(x, 100 * np.asarray(probs))
      probs = np.asarray(probs)
      quantiles = np.asarray(
          [
              np.percentile(x, 100 * prob)
              for prob in probs.ravel(order="C")
          ]
      )
      return quantiles.reshape(probs.shape, order="C")
  
file_path: patsy/patsy/splines.py
imports: import numpy
  from patsy.util import have_pandas, no_pickling, assert_no_pickling
  from patsy.state import stateful_transform
label_desc: Use image node_id 2 for calling a global function with example usage: _R_compat_quantile(x, probs) and returns: quantiles