'Return ``True`` if `i` is contained in PermutationGroup.
Examples
>>> from sympy.combinatorics import Permutation, PermutationGroup
>>> p = Permutation(1, 2, 3)
>>> Permutation(3) in PermutationGroup(p)
True'

def __contains__(self, i):

    if (not isinstance(i, Permutation)):
        raise TypeError(('A    PermutationGroup    contains    only    Permutations    as    elements,    not    elements    of    type    %s' % type(i)))
    return self.contains(i)
