





"""simple docstring"""






from __future__ import annotations

def     __A      (			a_						:list[int]   ,       a_						:int)		->		list[list[int]]:
				__a :						list[list[int]]			       =  []
				__a :						list[int]			       =  []
				__a :						Optional[Any]			       =  0
				__a :						Dict			       =  sum(a_)
				create_state_space_tree(a_   ,       a_   ,       a_   ,       a_   ,       a_   ,       a_)
				return result

def     __A      (			a_						:list[int]   ,       a_						:int   ,       a_						:int   ,       a_						:list[int]   ,       a_						:list[list[int]]   ,       a_						:int   ,       )		->		None:
				if sum(a_) > max_sum or (remaining_nums_sum + sum(a_)) < max_sum:
								return
				if sum(a_) == max_sum:
								result.append(a_)
								return
				for index in range(a_   ,       len(a_)):
								create_state_space_tree(
								    a_   ,       a_   ,       index + 1   ,       [*path, nums[index]]   ,       a_   ,       remaining_nums_sum - nums[index]   ,       )
A 			=  [3, 34, 4, 12, 5, 2]
A 			=  9
A 			=  generate_sum_of_subsets_soln(nums, max_sum)






print(*result)






"""simple docstring"""






# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
A 			=  abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)

def     __A      (			a_						:Tuple)		->		Dict:
				from transformers.testing_utils import pytest_addoption_shared

				pytest_addoption_shared(a_)






def     __A      (			a_						:Any)		->		int:
				from transformers.testing_utils import pytest_terminal_summary_main

				__a :						str			       =  terminalreporter.config.getoption('''--make-reports''')
				if make_reports:
								pytest_terminal_summary_main(a_   ,       id=a_)