
"""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			:			List[str]			):
       _snake_case					     =       inspect.getfile(accelerate.test_utils			)
       _snake_case					     =       os.path.sep.join(mod_file.split(os.path.sep			)[:-1] + ['''scripts''', '''test_script.py''']			)
       _snake_case					     =       os.path.sep.join(inspect.getfile(self.__class__			).split(os.path.sep			)[:-1]			)







     @require_tpu
     def      lowercase	(							self			:			int			):
       _snake_case					     =       f'''
            {self.test_dir}/xla_spawn.py
            --num_cores 8
            {self.test_file_path}
        '''.split()
       _snake_case					     =       [sys.executable] + distributed_args
       execute_subprocess_async(_lowerCamelCase    ,      env=os.environ.copy()			)





import pprint

import requests

UpperCAmelCase	      = '''https://zenquotes.io/api'''






def 							UpperCAmelCase_		(							):
	return requests.get(API_ENDPOINT_URL + '/today'							).json()






def 							UpperCAmelCase_		(							):
	return requests.get(API_ENDPOINT_URL + '/random'							).json()


if __name__ == "__main__":
	UpperCAmelCase	      = random_quotes()
	pprint.pprint(response)

