':type nums: List[int]
:rtype: List[List[int]]'

def permuteUnique(self, nums):

    nums.sort()
    result = []
    used = ([False] * len(nums))
    self.permuteUniqueRecu(result, used, [], nums)
    return result
