code: def subsets_unique(nums):
      def backtrack(res, nums, stack, pos):
          if pos == len(nums):
              res.add(tuple(stack))
          else:
              # take
              stack.append(nums[pos])
              backtrack(res, nums, stack, pos + 1)
              stack.pop()
  
              # don't take
              backtrack(res, nums, stack, pos + 1)
  
      res = set()
      backtrack(res, nums, [], 0)
      return list(res)
  
label_desc: Use image node_id 1 for calling a global function with example usage: subsets_unique(nums) and returns: list