


'''simple docstring'''
def      a (     __a  )    ->      list[list[int]]:



					'''simple docstring'''






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


def      a (     __a  )    ->      Tuple:



					'''simple docstring'''






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

					UpperCamelCase__  :List[Any]				   =					[]
					backtrack(0  )
					return output


if __name__ == "__main__":
		import doctest

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



'''simple docstring'''
from .glue import glue_convert_examples_to_features, glue_output_modes, glue_processors, glue_tasks_num_labels
from .squad import SquadExample, SquadFeatures, SquadVaProcessor, SquadVaProcessor, squad_convert_examples_to_features
from .utils import DataProcessor, InputExample, InputFeatures, SingleSentenceClassificationProcessor
from .xnli import xnli_output_modes, xnli_processors, xnli_tasks_num_labels