





"""simple docstring"""
import unittest

from transformers import DonutProcessor


lowerCamelCase_								=		"naver-clova-ix/donut-base"






class 					_SCREAMING_SNAKE_CASE(   unittest.TestCase  ):




       def     _UpperCamelCase     (						self							)			->      Any:





             """simple docstring"""






             __SCREAMING_SNAKE_CASE   :List[Any]						=  DonutProcessor.from_pretrained(SCREAMING_SNAKE_CASE__							)




       def     _UpperCamelCase     (						self							)			->      Dict:





             """simple docstring"""






             __SCREAMING_SNAKE_CASE   :Optional[Any]						=  {
                 '''name''': '''John Doe''',
                 '''age''': '''99''',
                 '''city''': '''Atlanta''',
                 '''state''': '''GA''',
                 '''zip''': '''30301''',
                 '''phone''': '''123-4567''',
                 '''nicknames''': [{'''nickname''': '''Johnny'''}, {'''nickname''': '''JD'''}],
             }

             __SCREAMING_SNAKE_CASE   :Tuple						=  (
                 '''<s_name>John Doe</s_name><s_age>99</s_age><s_city>Atlanta</s_city>'''
                 '''<s_state>GA</s_state><s_zip>30301</s_zip><s_phone>123-4567</s_phone>'''
                 '''<s_nicknames><s_nickname>Johnny</s_nickname>'''
                 '''<sep/><s_nickname>JD</s_nickname></s_nicknames>'''
             )
             __SCREAMING_SNAKE_CASE   :Tuple						=  self.processor.tokenajson(SCREAMING_SNAKE_CASE__							)

             self.assertDictEqual(SCREAMING_SNAKE_CASE__		,SCREAMING_SNAKE_CASE__							)






"""simple docstring"""
def      __lowerCamelCase   (							a_     :		int							)			->      bool:
      if not isinstance(a_ ,   a_							):
            __SCREAMING_SNAKE_CASE   :int						=  f'''Input value of [number={number}] must be an integer'''
            raise TypeError(a_							)
      if number < 0:
            return False
      __SCREAMING_SNAKE_CASE   :Any						=  number * number
      while number > 0:
            if number % 10 != number_square % 10:
                  return False
            number //= 10
            number_square //= 10
      return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()