comefrom: <qiyuangong>090_Subsets_II_2.py
code: def subsetsWithDup( nums):
      nums.sort()
      res = [[]]
      begin = 0
      for index in range(len(nums)):
          if index == 0 or nums[index] != nums[index - 1]:
              begin = 0
          size = len(res)
          for j in range(begin, size):
              curr = list(res[j])
              curr.append(nums[index])
              res.append(curr)
          begin = size
      return res
masked: def sample_funcname ( var_0 ) :
      var_0.sort ( )
      var_2 = [ [ ] ]
      var_4 = 0
      for var_7 in range ( len ( var_0 ) ) :
          if var_7 == 0 or var_0 [ var_7 ] != var_0 [ var_7 - 1 ] :
              var_4 = 0
          var_9 = len ( var_2 )
          for var_10 in range ( var_4 , var_9 ) :
              var_12 = list ( var_2 [ var_10 ] )
              var_12.append ( var_0 [ var_7 ] )
              var_2.append ( var_12 )
          var_4 = var_9
      return var_2
  