code: def count_perm_sig(n, s, k):
      rd.seed(s)
      myset = set()
      count = 0
      permutation = [i for i in range(k)]
      for i in range(n):
          rd.shuffle(permutation)
          sig = signature(permutation)
          if sig not in myset:
              myset.add(sig)
              count += 1
      return myset, count
  
label_desc: Use image node_id 1 for calling a global function with example usage: count_perm_sig(n, s, k) and returns: myset,  count