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_1 = [ [ ] ]
      var_2 = 0
      for var_3 in range ( len ( var_0 ) ) :
          if var_3 == 0 or var_0 [ var_3 ] != var_0 [ var_3 - 1 ] :
              var_2 = 0
          var_4 = len ( var_1 )
          for var_5 in range ( var_2 , var_4 ) :
              var_6 = list ( var_1 [ var_5 ] )
              var_6.append ( var_0 [ var_3 ] )
              var_1.append ( var_6 )
          var_2 = var_4
      return var_1
  