import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


lowerCAmelCase			:							Tuple     =logging.get_logger(__name__)




class 	__snake_case	( __lowerCAmelCase		):





      '''simple docstring'''






      def __init__(					self     :				List[str]    ,  *_UpperCamelCase     :				int    ,  **_UpperCamelCase     :				List[Any])				->None:


          """simple docstring"""


          warnings.warn(
              """The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
              """ Please use DeformableDetrImageProcessor instead."""    ,  _UpperCamelCase    ,  )
          super().__init__(*_UpperCamelCase    ,  **_UpperCamelCase)





import math







def 						A__  (					__A	):







    '''simple docstring'''
    assert isinstance(__A   , __A	) and (
        number >= 0
    ), "'number' must been an int and positive"

    if 1 < number < 4:
        # 2 and 3 are primes
        return True
    elif number < 2 or not number % 2:
        # Negatives, 0, 1 and all even numbers are not primes
        return False

    _lowerCamelCase     :		List[Any] 						=						range(3   , int(math.sqrt(__A	) + 1	)   , 2	)
    return not any(not number % i for i in odd_numbers	)







def 						A__  (					__A   , __A=1   , **__A	):







    '''simple docstring'''
    _lowerCamelCase     :		Dict 						=						factor * value
    _lowerCamelCase     :		str 						=						value

    while not is_prime(__A	):
        value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

    if value == first_value_val:
        return next_prime(value + 1   , **__A	)
    return value




