




def 	_a      (						SCREAMING_SNAKE_CASE_							:				list     ):

					if len(SCREAMING_SNAKE_CASE_     ) <= 1:
										return [tuple(SCREAMING_SNAKE_CASE_     )]

					__lowerCAmelCase				   =       []

					def generate(SCREAMING_SNAKE_CASE_							:				int      ,      SCREAMING_SNAKE_CASE_							:				list     ):
										if k == 1:
															res.append(tuple(arr[:]     )     )
															return

										generate(k - 1      ,      SCREAMING_SNAKE_CASE_     )

										for i in range(k - 1     ):
															if k % 2 == 0:  # k is even
																				__lowerCAmelCase   ,							__lowerCAmelCase				   =       arr[k - 1], arr[i]
															else:  # k is odd
																				__lowerCAmelCase   ,							__lowerCAmelCase				   =       arr[k - 1], arr[0]
															generate(k - 1      ,      SCREAMING_SNAKE_CASE_     )

					generate(len(SCREAMING_SNAKE_CASE_     )      ,      SCREAMING_SNAKE_CASE_     )
					return res


if __name__ == "__main__":
					UpperCamelCase__    			=			input("""Enter numbers separated by a comma:\n""").strip()
					UpperCamelCase__    			=			[int(item) for item in user_input.split(""",""")]
					print(heaps(arr))







from typing import Union

import fire
import torch
from tqdm import tqdm
def 						_snake_case(    SCREAMING_SNAKE_CASE__			:	str    ,			SCREAMING_SNAKE_CASE__			:	str = "cpu"    ,			SCREAMING_SNAKE_CASE__			:	Union[str, None] = None      )							->      None:





    '''simple docstring'''






    A__          =   torch.load(SCREAMING_SNAKE_CASE__    ,			map_location=SCREAMING_SNAKE_CASE__      )
    for k, v in tqdm(state_dict.items()      ):
        if not isinstance(SCREAMING_SNAKE_CASE__    ,			torch.Tensor      ):
            raise TypeError('FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin'      )
        A__          =   v.half()
    if save_path is None:  # overwrite src_path
        A__          =   src_path
    torch.save(SCREAMING_SNAKE_CASE__    ,			SCREAMING_SNAKE_CASE__      )


if __name__ == "__main__":
     fire.Fire(convert)

