
from argparse import ArgumentParser

from . import BaseTransformersCLICommand
def  lowerCAmelCase__			(  SCREAMING_SNAKE_CASE_     )				->		str:
			return DownloadCommand(args.model       ,							args.cache_dir       ,							args.force       ,							args.trust_remote_code     )







class      A__							(     __magic_name__	):






				@staticmethod
				def 							_lowerCamelCase		(						a					:      ArgumentParser   ):






							'''simple docstring'''







							lowerCAmelCase__      :      str         =		parser.add_parser('download'   )
							download_parser.add_argument(
							    '--cache-dir'    ,     type=a    ,     default=a    ,     help='Path to location to store the models'   )
							download_parser.add_argument(
							    '--force'    ,     action='store_true'    ,     help='Force the model to be download even if already in cache-dir'   )
							download_parser.add_argument(
							    '--trust-remote-code'    ,     action='store_true'    ,     help='Whether or not to allow for custom models defined on the Hub in their own modeling files. Use only if you\'ve reviewed the code as it will execute on your local machine'    ,     )
							download_parser.add_argument('model'    ,     type=a    ,     help='Name of the model to download'   )
							download_parser.set_defaults(func=a   )






				def __init__(						self					:      Optional[int]    ,     a					:      str    ,     a					:      str    ,     a					:      bool    ,     a					:      bool   ):






							'''simple docstring'''







							lowerCAmelCase__      :      str         =		model
							lowerCAmelCase__      :      str         =		cache
							lowerCAmelCase__      :      Optional[Any]         =		force
							lowerCAmelCase__      :      int         =		trust_remote_code






				def 							_lowerCamelCase		(						self					:      Optional[Any]   ):






							'''simple docstring'''







							from ..models.auto import AutoModel, AutoTokenizer

							AutoModel.from_pretrained(
							    self._model    ,     cache_dir=self._cache    ,     force_download=self._force    ,     trust_remote_code=self._trust_remote_code   )
							AutoTokenizer.from_pretrained(
							    self._model    ,     cache_dir=self._cache    ,     force_download=self._force    ,     trust_remote_code=self._trust_remote_code   )

def  lowerCAmelCase__			(  SCREAMING_SNAKE_CASE_     )				->		list:

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

			lowerCAmelCase__      :      Optional[Any]         =		[]

			def generate(SCREAMING_SNAKE_CASE_       ,							SCREAMING_SNAKE_CASE_     ):
						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__      :      str         =		arr[k - 1], arr[i]
									else:  # k is odd
												lowerCAmelCase__      ,				lowerCAmelCase__      :      Union[str, Any]         =		arr[k - 1], arr[0]
									generate(k - 1       ,							SCREAMING_SNAKE_CASE_     )

			generate(len(SCREAMING_SNAKE_CASE_     )       ,							SCREAMING_SNAKE_CASE_     )
			return res


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