



"""simple docstring"""
import inspect
import os
import sys
import unittest

import accelerate
from accelerate.test_utils import execute_subprocess_async, require_tpu
class 							_UpperCAmelCase							( unittest.TestCase      ):





     '''simple docstring'''



     def  __lowerCAmelCase	(					self		)							->					Tuple:
         _UpperCAmelCase							:  int											=    inspect.getfile(accelerate.test_utils		)
         _UpperCAmelCase							:  Optional[int]											=    os.path.sep.join(mod_file.split(os.path.sep		)[:-1] + ['''scripts''', '''test_script.py''']		)
         _UpperCAmelCase							:  List[str]											=    os.path.sep.join(inspect.getfile(self.__class__		).split(os.path.sep		)[:-1]		)





     @require_tpu
     def  __lowerCAmelCase	(					self		)							->					Tuple:
         _UpperCAmelCase							:  List[Any]											=    f'\n            {self.test_dir}/xla_spawn.py\n            --num_cores 8\n            {self.test_file_path}\n        '.split()
         _UpperCAmelCase							:  Any											=    [sys.executable] + distributed_args
         execute_subprocess_async(A       ,	env=os.environ.copy()		)







"""simple docstring"""
import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


_lowerCAmelCase    :Optional[int]     =					logging.get_logger(__name__)
class 							_UpperCAmelCase							( a      ):





     '''simple docstring'''



     def __init__(					self       ,	*A       ,	**A		)							->					None:
         warnings.warn(
             '''The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
             ''' use DonutImageProcessor instead.'''       ,	A       ,	)
         super().__init__(*A       ,	**A		)


