code: 
  import importlib.metadata
  import subprocess
  import sys
  
  
  
  
  
  
  def 						lowerCAmelCase_		(      _snake_case   :						bool = False     )       ->	Any:
  
  
  
  
  
  
  
  	'''simple docstring'''
  
  
  	__magic_name__	:	Dict			     =  False
  	if "IPython" in sys.modules:
  		__magic_name__	:	List[str]			     =  "google.colab" in str(sys.modules["IPython"].get_ipython()     )
  
  	if in_colab:
  		if upgrade:
  			__magic_name__	:	Union[str, Any]			     =  ["pip", "install", "-U", "torch"]
  			subprocess.run(_snake_case   ,     check=_snake_case     )
  		# get the current version of torch
  		__magic_name__	:	Union[str, Any]			     =  importlib.metadata.version("torch"     )
  		__magic_name__	:	Dict			     =  torch_version[: torch_version.rindex("."     )]
  		__magic_name__	:	List[Any]			     =  F'''https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl'''
  		__magic_name__	:	Optional[int]			     =  ["pip", "install", xla_wheel]
  		subprocess.run(_snake_case   ,     check=_snake_case     )
  	else:
  		raise RuntimeError("`install_xla` utility works only on google colab."     )
  
style_context: 
  def 						lowerCAmelCase_		(      _snake_case   :						int     )       ->	int:
  
  
  
  
  
  
  
  	'''simple docstring'''
  
  
  	if not isinstance(_snake_case   ,     _snake_case     ) or number < 0:
  		raise ValueError("Input must be a non-negative integer"     )
  
  	__magic_name__	:	Dict			     =  number & ~(number - 1)
  	__magic_name__	:	Optional[Any]			     =  0
  	while intermediate:
  		intermediate >>= 1
  		index += 1
  	return index - 1
  
  
  if __name__ == "__main__":
  				import doctest
  
  				doctest.testmod(verbose=True)
  