code: def invert_permutation(
      x: Union[np.ndarray, list, tuple],
      /,
  ) -> np.ndarray:
      sorted_indices = np.argsort(x)
      inverse = np.zeros_like(sorted_indices)
      inverse[sorted_indices] = np.arange(len(x))
      inverse_permutation = np.argsort(inverse)
      return inverse_permutation
  
label_desc: Use image node_id 1 for calling a global function with example usage: invert_permutation() and returns: inverse_permutation