






'''simple docstring'''
import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


a_					=	logging.get_logger(__name__)






class        __SCREAMING_SNAKE_CASE (     lowerCamelCase			):




 def __init__( self		:							Tuple   , *__lowercase		:							List[Any]   , **__lowercase		:							str )		->  None:
       warnings.warn(
           '''The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
           ''' use DonutImageProcessor instead.'''   , __lowercase   , )
       super().__init__(*__lowercase   , **__lowercase )







'''simple docstring'''
import math





def 	_a(					UpperCamelCase__			:  int							):




      '''simple docstring'''






      return math.sqrt(UpperCamelCase__							) * math.sqrt(UpperCamelCase__							) == num





def 	_a(					UpperCamelCase__			:  int							):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__       :			List[Any]													=0
      SCREAMING_SNAKE_CASE__       :			Any													=n
      while left <= right:
            SCREAMING_SNAKE_CASE__       :			str													=(left + right) // 2
            if mid**2 == n:
                  return True
            elif mid**2 > n:
                  SCREAMING_SNAKE_CASE__       :			Optional[Any]													=mid - 1
            else:
                  SCREAMING_SNAKE_CASE__       :			Tuple													=mid + 1
      return False


if __name__ == "__main__":
  import doctest

  doctest.testmod()