code: def get_random_ranks(permsize, samplesize):
      perms = fact(permsize)
      ranks = set()
      while len(ranks) < samplesize:
          ranks |= set(
              randrange(perms) for r in range(samplesize - len(ranks))
          )
      return ranks
  
file_path: pythran/pythran/tests/rosetta/permutation_rank.py
imports: from math import factorial
  from random import randrange
label_desc: Use image node_id 7 for calling a global function with example usage: get_random_ranks(permsize, samplesize) and returns: ranks