


'''simple docstring'''
import inspect
import os
import sys
import unittest

import accelerate
from accelerate.test_utils import execute_subprocess_async, require_tpu




class 			lowerCamelCase_   (	unittest.TestCase      ):






      def lowercase_							(					self				:    int ):


          '''simple docstring'''


          UpperCAmelCase__			:		List[str]													=				inspect.getfile(accelerate.test_utils )
          UpperCAmelCase__			:		Dict													=				os.path.sep.join(mod_file.split(os.path.sep )[:-1] + ['''scripts''', '''test_script.py'''] )
          UpperCAmelCase__			:		str													=				os.path.sep.join(inspect.getfile(self.__class__ ).split(os.path.sep )[:-1] )






      @require_tpu
      def lowercase_							(					self				:    Optional[int] ):


          '''simple docstring'''


          UpperCAmelCase__			:		int													=				f"""
            {self.test_dir}/xla_spawn.py
            --num_cores 8
            {self.test_file_path}
        """.split()
          UpperCAmelCase__			:		str													=				[sys.executable] + distributed_args
          execute_subprocess_async(lowerCAmelCase_						,						env=os.environ.copy() )







def   a_    ( lowerCAmelCase_      :			int	):
   if number < 0:
      raise ValueError('number must not be negative'	)
   return number & (number - 1) == 0


if __name__ == "__main__":
     import doctest

     doctest.testmod()

