

import pytest

import datasets


# Import fixture modules as plugins
_UpperCAmelCase		:       int						    =	["""tests.fixtures.files""", """tests.fixtures.hub""", """tests.fixtures.fsspec"""]





def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__				):







							'''simple docstring'''






							for item in items:
														if any(marker in item.keywords for marker in ['integration', 'unit']				):
																					continue
														item.add_marker(pytest.mark.unit				)





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							config.addinivalue_line('markers'       ,							'torchaudio_latest: mark test to run with torchaudio>=0.12'				)





@pytest.fixture(autouse=UpperCamelCase__				)
def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   tmp_path_factory.getbasetemp() / 'cache'
							snake_case_          =   test_hf_cache_home / 'datasets'
							snake_case_          =   test_hf_cache_home / 'metrics'
							snake_case_          =   test_hf_cache_home / 'modules'
							monkeypatch.setattr('datasets.config.HF_DATASETS_CACHE'       ,							str(UpperCamelCase__				)				)
							monkeypatch.setattr('datasets.config.HF_METRICS_CACHE'       ,							str(UpperCamelCase__				)				)
							monkeypatch.setattr('datasets.config.HF_MODULES_CACHE'       ,							str(UpperCamelCase__				)				)
							snake_case_          =   test_hf_datasets_cache / 'downloads'
							monkeypatch.setattr('datasets.config.DOWNLOADED_DATASETS_PATH'       ,							str(UpperCamelCase__				)				)
							snake_case_          =   test_hf_datasets_cache / 'downloads' / 'extracted'
							monkeypatch.setattr('datasets.config.EXTRACTED_DATASETS_PATH'       ,							str(UpperCamelCase__				)				)





@pytest.fixture(autouse=UpperCamelCase__       ,							scope='session'				)
def  __lowerCamelCase     (			):







							'''simple docstring'''






							datasets.disable_progress_bar()





@pytest.fixture(autouse=UpperCamelCase__				)
def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							monkeypatch.setattr('datasets.config.HF_UPDATE_DOWNLOAD_COUNTS'       ,							UpperCamelCase__				)





@pytest.fixture
def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							monkeypatch.setattr('sqlalchemy.util.deprecations.SILENCE_UBER_WARNING'       ,							UpperCamelCase__				)







from __future__ import annotations





def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   []
							create_all_state(1       ,							UpperCamelCase__       ,							UpperCamelCase__       ,							[]       ,							UpperCamelCase__				)
							return result





def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__       ,							UpperCamelCase__       ,							UpperCamelCase__       ,							UpperCamelCase__       ,							):







							'''simple docstring'''






							if level == 0:
														total_list.append(current_list[:]				)
														return

							for i in range(UpperCamelCase__       ,							total_number - level + 2				):
														current_list.append(UpperCamelCase__				)
														create_all_state(i + 1       ,							UpperCamelCase__       ,							level - 1       ,							UpperCamelCase__       ,							UpperCamelCase__				)
														current_list.pop()





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							for i in total_list:
														print(*UpperCamelCase__				)


if __name__ == "__main__":
					_UpperCAmelCase		:       str						    =	4
					_UpperCAmelCase		:       Tuple						    =	2
					_UpperCAmelCase		:       Optional[int]						    =	generate_all_combinations(n, k)
					print_all_state(total_list)




