





import inspect
import os
import sys
import unittest

import accelerate
from accelerate.test_utils import execute_subprocess_async, require_tpu






class       __A					(					unittest.TestCase				):

			'''simple docstring'''







			def 	__lowerCamelCase       (					self							):



				'''simple docstring'''







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





			@require_tpu
			def 	__lowerCamelCase       (					self							):



				'''simple docstring'''







				lowerCamelCase__              =	F'\n            {self.test_dir}/xla_spawn.py\n            --num_cores 8\n            {self.test_file_path}\n        '.split()
				lowerCamelCase__              =	[sys.executable] + distributed_args
				execute_subprocess_async(__lowerCAmelCase ,						env=os.environ.copy()							)










import warnings

from ...utils import logging
from .image_processing_owlvit import OwlViTImageProcessor


_a						=   logging.get_logger(__name__)






class       __A					(					lowerCAmelCase				):

			'''simple docstring'''







			def __init__(					self ,						*__lowerCAmelCase ,						**__lowerCAmelCase							):



				'''simple docstring'''







				warnings.warn(
				    '''The class OwlViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
				    ''' use OwlViTImageProcessor instead.''' ,						__lowerCAmelCase ,						)
				super().__init__(*__lowerCAmelCase ,						**__lowerCAmelCase							)



