





'''simple docstring'''




from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

a__					:			int          =     typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
a__					:			str          =     typing.Union[np.floataa, int, float]  # noqa: UP007




def 						__lowerCamelCase			(	UpperCAmelCase_					,				UpperCAmelCase_							)   ->VectorOut:
	return np.sqrt(np.sum((np.asarray(UpperCAmelCase_							) - np.asarray(UpperCAmelCase_							)) ** 2							)							)




def 						__lowerCamelCase			(	UpperCAmelCase_					,				UpperCAmelCase_							)   ->VectorOut:
	return sum((va - va) ** 2 for va, va in zip(UpperCAmelCase_					,				UpperCAmelCase_							)							) ** (1 / 2)


if __name__ == "__main__":




			def 						__lowerCamelCase			(	)   ->None:
				from timeit import timeit

				print('Without Numpy'							)
				print(
				    timeit(
				        'euclidean_distance_no_np([1, 2, 3], [4, 5, 6])'					,				number=1_00_00					,				globals=globals()					,				)							)
				print('With Numpy'							)
				print(
				    timeit(
				        'euclidean_distance([1, 2, 3], [4, 5, 6])'					,				number=1_00_00					,				globals=globals()					,				)							)







			benchmark()










'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


a__					:			int          =     logging.get_logger(__name__)






class 				__snake_case     (					__magic_name__							):





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



