





def    __lowercase   (      _SCREAMING_SNAKE_CASE	) ->   list[list[int]]:


      '''simple docstring'''


      SCREAMING_SNAKE_CASE		=						[]
      if len(_SCREAMING_SNAKE_CASE	) == 1:
            return [nums.copy()]
      for _ in range(len(_SCREAMING_SNAKE_CASE	)	):
            SCREAMING_SNAKE_CASE		=						nums.pop(0	)
            SCREAMING_SNAKE_CASE		=						permute(_SCREAMING_SNAKE_CASE	)
            for perm in permutations:
                  perm.append(_SCREAMING_SNAKE_CASE	)
            result.extend(_SCREAMING_SNAKE_CASE	)
            nums.append(_SCREAMING_SNAKE_CASE	)
      return result



def    __lowercase   (      _SCREAMING_SNAKE_CASE	) ->   Any:


      '''simple docstring'''


      def backtrack(_SCREAMING_SNAKE_CASE	):
            if start == len(_SCREAMING_SNAKE_CASE	) - 1:
                  output.append(nums[:]	)
            else:
                  for i in range(_SCREAMING_SNAKE_CASE ,						len(_SCREAMING_SNAKE_CASE	)	):
                        SCREAMING_SNAKE_CASE,					SCREAMING_SNAKE_CASE		=						nums[i], nums[start]
                        backtrack(start + 1	)
                        SCREAMING_SNAKE_CASE,					SCREAMING_SNAKE_CASE		=						nums[i], nums[start]  # backtrack

      SCREAMING_SNAKE_CASE		=						[]
      backtrack(0	)
      return output


if __name__ == "__main__":
      import doctest

      # use res to print the data in permute2 function
      SCREAMING_SNAKE_CASE_						   =       permutea([1, 2, 3])
      print(res)
      doctest.testmod()









from argparse import ArgumentParser

from .env import EnvironmentCommand



def    __lowercase   (      ) ->   Dict:


      '''simple docstring'''


      SCREAMING_SNAKE_CASE		=						ArgumentParser("""Diffusers CLI tool""" ,						usage="""diffusers-cli <command> [<args>]"""	)
      SCREAMING_SNAKE_CASE		=						parser.add_subparsers(help="""diffusers-cli command helpers"""	)

      # Register commands
      EnvironmentCommand.register_subcommand(_SCREAMING_SNAKE_CASE	)

      # Let's go
      SCREAMING_SNAKE_CASE		=						parser.parse_args()

      if not hasattr(_SCREAMING_SNAKE_CASE ,						"""func"""	):
            parser.print_help()
            exit(1	)

      # Run
      SCREAMING_SNAKE_CASE		=						args.func(_SCREAMING_SNAKE_CASE	)
      service.run()


if __name__ == "__main__":
      main()


