



"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_torch_available,
    is_vision_available,
)


lowercase  							=					{
    '''configuration_efficientformer''': [
        '''EFFICIENTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''EfficientFormerConfig''',
    ]
}

try:
					if not is_vision_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase  							=					['''EfficientFormerImageProcessor''']

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase  							=					[
					    '''EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''EfficientFormerForImageClassification''',
					    '''EfficientFormerForImageClassificationWithTeacher''',
					    '''EfficientFormerModel''',
					    '''EfficientFormerPreTrainedModel''',
					]

try:
					if not is_tf_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase  							=					[
					    '''TF_EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''TFEfficientFormerForImageClassification''',
					    '''TFEfficientFormerForImageClassificationWithTeacher''',
					    '''TFEfficientFormerModel''',
					    '''TFEfficientFormerPreTrainedModel''',
					]

if TYPE_CHECKING:
					from .configuration_efficientformer import EFFICIENTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, EfficientFormerConfig

					try:
										if not is_vision_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .image_processing_efficientformer import EfficientFormerImageProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_efficientformer import (
										    EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
										    EfficientFormerForImageClassification,
										    EfficientFormerForImageClassificationWithTeacher,
										    EfficientFormerModel,
										    EfficientFormerPreTrainedModel,
										)
					try:
										if not is_tf_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_tf_efficientformer import (
										    TF_EFFICIENTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
										    TFEfficientFormerForImageClassification,
										    TFEfficientFormerForImageClassificationWithTeacher,
										    TFEfficientFormerModel,
										    TFEfficientFormerPreTrainedModel,
										)

else:
					import sys

					lowercase  							=					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)







"""simple docstring"""





from __future__ import annotations




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int       ):

		'''simple docstring'''


		_UpperCAmelCase							 =		[]
		create_all_state(1     ,				A     ,				A     ,				[]     ,				A       )
		return result




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int     ,				A	:						int     ,				A	:						list[int]     ,				A	:						list[list[int]]     ,				):

		'''simple docstring'''


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

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




def 	UpperCAmelCase     (		A	:						list[list[int]]       ):

		'''simple docstring'''


		for i in total_list:
				print(*A       )


if __name__ == "__main__":
					lowercase  							=					4
					lowercase  							=					2
					lowercase  							=					generate_all_combinations(n, k)
					print_all_state(total_list)


