code: def init_pi1(n, pi):
      pi1 = [-1] * n
      for i in range(n):
          pi1[pi[i]] = i
      return pi1
  
file_path: pythran/pythran/tests/rosetta/permutation_rank.py
imports: from math import factorial
  from random import randrange
label_desc: Use image node_id 3 for calling a global function with example usage: init_pi1(n, pi) and returns: pi1