code: def permutations(x):
      if len(x) > 1:
          for permutation in permutations(x[1:]):
              # Stick the first digit in every position.
              for i in xrange(len(permutation) + 1):
                  yield permutation[:i] + x[0:1] + permutation[i:]
      else:
          yield x
  
label_desc: Use image node_id 5 for calling a global function with example usage: permutations(x) without return types