


'''simple docstring'''



from __future__ import annotations




def      _a     (						_lowercase :     list      , _lowercase :     int  ):





     '''simple docstring'''






     if len(_lowercase  ) <= 1 or n <= 1:
          return

     insert_next(_lowercase      , n - 1  )
     rec_insertion_sort(_lowercase      , n - 1  )




def      _a     (						_lowercase :     list      , _lowercase :     int  ):





     '''simple docstring'''






     if index >= len(_lowercase  ) or collection[index - 1] <= collection[index]:
          return

     # Swaps adjacent elements since they are not in ascending order
     __UpperCAmelCase							,       __UpperCAmelCase     :			int  							=      (
         collection[index],
         collection[index - 1],
     )

     insert_next(_lowercase      , index + 1  )


if __name__ == "__main__":
      __UpperCAmelCase      :Any			    =       input("Enter integers separated by spaces: ")
      __UpperCAmelCase      :list[int]			    =       [int(num) for num in numbers.split()]
      rec_insertion_sort(number_list, len(number_list))
      print(number_list)



'''simple docstring'''



from argparse import ArgumentParser

from .env import EnvironmentCommand




def      _a     (						):





     '''simple docstring'''






     __UpperCAmelCase     :			Optional[Any]  							=      ArgumentParser('''Diffusers CLI tool'''      , usage='''diffusers-cli <command> [<args>]'''  )
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.add_subparsers(help='''diffusers-cli command helpers'''  )

     # Register commands
     EnvironmentCommand.register_subcommand(_lowercase  )

     # Let's go
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.parse_args()

     if not hasattr(_lowercase      , '''func'''  ):
          parser.print_help()
          exit(1  )

     # Run
     __UpperCAmelCase     :			Any  							=      args.func(_lowercase  )
     service.run()


if __name__ == "__main__":
      main()