import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


__SCREAMING_SNAKE_CASE						:    Optional[int]     = logging.get_logger(__name__)



class    lowercase_    (     __snake_case		):



							def __init__(						self      ,				*lowercase_      ,				**lowercase_				):
													warnings.warn(
													    "The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
													    " use ViTImageProcessor instead."      ,				lowercase_      ,				)
													super().__init__(*lowercase_      ,				**lowercase_				)
def 					snake_case						(__lowercase						)       ->       int:

						'''simple docstring'''



						if not isinstance(__lowercase					,			__lowercase						) or number < 0:
												raise ValueError("Input must be a non-negative integer"						)

						_snake_case						:     List[Any]				=    number & ~(number - 1)
						_snake_case						:     Union[str, Any]				=    0
						while intermediate:
												intermediate >>= 1
												index += 1
						return index - 1


if __name__ == "__main__":
				import doctest

				doctest.testmod(verbose=True)