code: def ranker2(n, pi, pi1):
      if n == 1:
          return 0
      n1 = n - 1
      s = pi[n1]
      pi[n1], pi[pi1[n1]] = pi[pi1[n1]], pi[n1]
      pi1[s], pi1[n1] = pi1[n1], pi1[s]
      return s * fact(n1) + ranker2(n1, pi, 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 6 for calling a global function with example usage: ranker2(n, pi, pi1) and returns: unknown, int