<bos><start_of_turn>system
You are a helpful AI assistant.
lista de codigos linguisticos disponibles: ["en", "es"].<end_of_turn>
<start_of_turn>user
How do you implement a list comprehension to produce a list of all possible permutations of a given list of numbers?<end_of_turn>
<start_of_turn>model
desde itertools importar permutaciones

def lista_permutaciones(lst):
    devolver [lista(p) para p en permutaciones(lst)]

números = [1, 2, 3]
print(list_permutations(numbers)) # La salida incluye todas las permutaciones de [1, 2, 3]<end_of_turn><eos>