### Is there any code to calculate the subgroup generated by the permutations

Consider the Symmetric Group $S_4$

I have three permutations namely $(3,4), (1,2), (1,3)(2,4)$.

How to find the subgroup generated by these permutations ?

Is there any code to calculate in Sagemath the subgroup generated by the permutations given above?

As an example the code should work like this :

If I input $(12)$ the code should give ${(12),e}$

Can someone help please?