code: def subsets(self, nums: List[int]) -> List[List[int]]:
      def dfs(nums, currentPath, answer):
          # if currentPath not in answer:
          answer.append(currentPath)
  
          for i in range(len(nums)):
              dfs(nums[i + 1 :], currentPath + [nums[i]], answer)
  
      answer = []
      dfs(nums, [], answer)
      return answer
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.subsets(nums) and returns: answer