code: def permute_outputs(X, Y):
      """
      Permute the output according to one of the inputs as in [_2]
  
      References
      ----------
      .. [2] Elmar Plischke (2010) "An effective algorithm for computing global
            sensitivity indices (EASI) Reliability Engineering & System Safety",
            95:4, 354-360. doi:10.1016/j.ress.2009.11.005
  
      """
      permutation_index = np.argsort(X)
      permutation_index = np.concatenate(
          [permutation_index[::2], permutation_index[1::2][::-1]]
      )
      return Y[permutation_index]
  
file_path: SALib/src/SALib/analyze/rbd_fast.py
imports: import numpy
  from scipy.signal import periodogram
  from scipy.stats import norm
  from .None import common_args
  from ..util import read_param_file, ResultDict
label_desc: Use image node_id 2 for calling a global function with example usage: permute_outputs(X, Y) and returns: Y