

import unittest

from transformers import DonutProcessor


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






class        A_		(       unittest.TestCase				):
							def     lowerCAmelCase     (		self		:			str):
								__lowerCamelCase				:				Tuple					       = DonutProcessor.from_pretrained(SCREAMING_SNAKE_CASE__)


							def     lowerCAmelCase     (		self		:			Optional[int]):
								__lowerCamelCase				:				str					       = {
								    'name': 'John Doe',
								    'age': '99',
								    'city': 'Atlanta',
								    'state': 'GA',
								    'zip': '30301',
								    'phone': '123-4567',
								    'nicknames': [{'nickname': 'Johnny'}, {'nickname': 'JD'}],
								}

								__lowerCamelCase				:				List[Any]					       = (
								    '<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>'
								)
								__lowerCamelCase				:				Tuple					       = self.processor.tokenajson(SCREAMING_SNAKE_CASE__)

								self.assertDictEqual(SCREAMING_SNAKE_CASE__   ,SCREAMING_SNAKE_CASE__)





'''simple docstring'''




def 	UpperCamelCase_							(					_UpperCAmelCase  :      list    )    ->    list:


       """simple docstring"""







       _UpperCAmelCase     :  List[Any]							      =    len(_UpperCAmelCase    )
       for _ in range(_UpperCAmelCase    ):
              for i in range(_ % 2			,	arr_size - 1			,	2    ):
                     if arr[i + 1] < arr[i]:
                            _UpperCAmelCase      ,  _UpperCAmelCase     :  int							      =    arr[i + 1], arr[i]

       return arr


if __name__ == "__main__":
  __SCREAMING_SNAKE_CASE       :     Optional[Any]     =  list(range(10, 0, -1))
  print(F'Original: {arr}. Sorted: {odd_even_transposition(arr)}')

