






"""simple docstring"""






from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

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



def 					_A			(__a    ,				__a							) ->       VectorOut:
    """simple docstring"""






    return np.sqrt(np.sum((np.asarray(__a							) - np.asarray(__a							)) ** 2							)							)



def 					_A			(__a    ,				__a							) ->       VectorOut:
    """simple docstring"""






    return sum((va - va) ** 2 for va, va in zip(__a    ,				__a							)							) ** (1 / 2)


if __name__ == "__main__":



  def 					_A			() ->       None:
      """simple docstring"""






      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_clip import CLIPImageProcessor


_snake_case          =   logging.get_logger(__name__)






class        UpperCamelCase			(	snake_case_      ):


 def __init__(     self		:						Any							,						*UpperCAmelCase__		:						Optional[Any]							,						**UpperCAmelCase__		:						Tuple							)					->       None:
   warnings.warn(
       """The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
       """ use CLIPImageProcessor instead."""							,						UpperCAmelCase__							,						)
   super().__init__(*UpperCAmelCase__							,						**UpperCAmelCase__							)

