




from __future__ import annotations




def 					lowerCamelCase__       (						A__       :					int  ,			A__       :					int	):





       '''simple docstring'''



       __lowerCamelCase   =						[]
       create_all_state(1  ,			A__  ,			A__  ,			[]  ,			A__	)
       return result




def 					lowerCamelCase__       (						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 					lowerCamelCase__       (						A__       :					list[list[int]]	):





       '''simple docstring'''



       for i in total_list:
              print(*A__	)


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





'''simple docstring'''
from datetime import datetime

import matplotlib.pyplot as plt
import torch


def 			a      (			__a   )  ->	int:



					'''simple docstring'''






					for param in module.parameters():
										UpperCamelCase__   :Dict												= False


def 			a      (			)  ->	Union[str, Any]:



					'''simple docstring'''






					UpperCamelCase__   :List[Any]												= '''cuda''' if torch.cuda.is_available() else '''cpu'''
					if torch.backends.mps.is_available() and torch.backends.mps.is_built():
										UpperCamelCase__   :Optional[int]												= '''mps'''
					if device == "mps":
										print(
										    '''WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'''
										    ''' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'''
										    ''' with generations.'''   )
					return device


def 			a      (			__a   )  ->	Any:



					'''simple docstring'''






					UpperCamelCase__   :Dict												= plt.imshow(__a   )
					fig.axes.get_xaxis().set_visible(__a   )
					fig.axes.get_yaxis().set_visible(__a   )
					plt.show()







def 			a      (			)  ->	str:



					'''simple docstring'''






					UpperCamelCase__   :int												= datetime.now()
					UpperCamelCase__   :str												= current_time.strftime('''%H:%M:%S'''   )
					return timestamp