

"""simple docstring"""

import importlib.metadata
import subprocess
import sys





def 					__UpperCamelCase (     a__:			List[Any] = False      )					->      Tuple:




					"""simple docstring"""



					__lowercase        =      False
					if "IPython" in sys.modules:
										__lowercase        =      '''google.colab''' in str(sys.modules['''IPython'''].get_ipython()      )

					if in_colab:
										if upgrade:
															__lowercase        =      ['''pip''', '''install''', '''-U''', '''torch''']
															subprocess.run(lowercase_			,						check=lowercase_      )
										# get the current version of torch
										__lowercase        =      importlib.metadata.version('''torch'''      )
										__lowercase        =      torch_version[: torch_version.rindex('''.'''      )]
										__lowercase        =      f'''https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl'''
										__lowercase        =      ['''pip''', '''install''', xla_wheel]
										subprocess.run(lowercase_			,						check=lowercase_      )
					else:
										raise RuntimeError('''`install_xla` utility works only on google colab.'''      )







"""simple docstring"""


def 					_lowerCAmelCase (  lowercase_		):
						return " ".join(sorted(set(sentence.split()		)		)		)


if __name__ == "__main__":
				import doctest

				doctest.testmod()





