


import inspect
import os
import sys
import unittest

import accelerate
from accelerate.test_utils import execute_subprocess_async, require_tpu





class   __a			(    unittest.TestCase      ):
 def 		SCREAMING_SNAKE_CASE__   (   self )					->				Optional[int]:




        '''simple docstring'''
        lowercase__:   Union[str, Any]  			=   inspect.getfile(accelerate.test_utils )
        lowercase__:   Optional[Any]  			=   os.path.sep.join(mod_file.split(os.path.sep )[:-1] + ['scripts', 'test_script.py'] )
        lowercase__:   int  			=   os.path.sep.join(inspect.getfile(self.__class__ ).split(os.path.sep )[:-1] )
 @require_tpu
 def 		SCREAMING_SNAKE_CASE__   (   self )					->				Tuple:




        '''simple docstring'''
        lowercase__:   str  			=   F'\n            {self.test_dir}/xla_spawn.py\n            --num_cores 8\n            {self.test_file_path}\n        '.split()
        lowercase__:   Union[str, Any]  			=   [sys.executable] + distributed_args
        execute_subprocess_async(lowerCAmelCase__				, env=os.environ.copy() )






from __future__ import annotations




def    snake_case_     (  snake_case			,							snake_case     )  ->				list[int]:
       lowercase__:   List[str]  			=   0
       lowercase__:   Dict  			=   len(snake_case     ) - 1

       while i < j:
              if nums[i] + nums[j] == target:
                     return [i, j]
              elif nums[i] + nums[j] < target:
                     lowercase__:   Dict  			=   i + 1
              else:
                     lowercase__:   List[Any]  			=   j - 1

       return []


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 print(F'''{two_pointer([2, 7, 11, 15], 9) = }''')


