



from ..utils import DummyObject, requires_backends

class    _A	(     metaclass=__UpperCAmelCase   ):
       UpperCamelCase__  :   Tuple						 =						['''flax''', '''transformers''']



       def __init__(		self							:					Union[str, Any]					,		*__SCREAMING_SNAKE_CASE							:					Union[str, Any]					,		**__SCREAMING_SNAKE_CASE							:					Tuple):


           '''simple docstring'''

           requires_backends(self					,		['''flax''', '''transformers'''])



       @classmethod
       def 		_lowerCamelCase      (		cls							:					Optional[int]					,		*__SCREAMING_SNAKE_CASE							:					List[Any]					,		**__SCREAMING_SNAKE_CASE							:					str):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])





       @classmethod
       def 		_lowerCamelCase      (		cls							:					List[Any]					,		*__SCREAMING_SNAKE_CASE							:					Optional[Any]					,		**__SCREAMING_SNAKE_CASE							:					Optional[int]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])


class    _A	(     metaclass=__UpperCAmelCase   ):
       UpperCamelCase__  :   str						 =						['''flax''', '''transformers''']



       def __init__(		self							:					Optional[int]					,		*__SCREAMING_SNAKE_CASE							:					Dict					,		**__SCREAMING_SNAKE_CASE							:					Tuple):


           '''simple docstring'''

           requires_backends(self					,		['''flax''', '''transformers'''])



       @classmethod
       def 		_lowerCamelCase      (		cls							:					str					,		*__SCREAMING_SNAKE_CASE							:					Dict					,		**__SCREAMING_SNAKE_CASE							:					Optional[int]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])





       @classmethod
       def 		_lowerCamelCase      (		cls							:					Dict					,		*__SCREAMING_SNAKE_CASE							:					List[str]					,		**__SCREAMING_SNAKE_CASE							:					List[str]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])


class    _A	(     metaclass=__UpperCAmelCase   ):
       UpperCamelCase__  :   Any						 =						['''flax''', '''transformers''']



       def __init__(		self							:					Optional[int]					,		*__SCREAMING_SNAKE_CASE							:					int					,		**__SCREAMING_SNAKE_CASE							:					List[Any]):


           '''simple docstring'''

           requires_backends(self					,		['''flax''', '''transformers'''])



       @classmethod
       def 		_lowerCamelCase      (		cls							:					Dict					,		*__SCREAMING_SNAKE_CASE							:					Dict					,		**__SCREAMING_SNAKE_CASE							:					List[Any]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])





       @classmethod
       def 		_lowerCamelCase      (		cls							:					Dict					,		*__SCREAMING_SNAKE_CASE							:					Tuple					,		**__SCREAMING_SNAKE_CASE							:					Optional[Any]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])


class    _A	(     metaclass=__UpperCAmelCase   ):
       UpperCamelCase__  :   Tuple						 =						['''flax''', '''transformers''']



       def __init__(		self							:					List[Any]					,		*__SCREAMING_SNAKE_CASE							:					List[Any]					,		**__SCREAMING_SNAKE_CASE							:					int):


           '''simple docstring'''

           requires_backends(self					,		['''flax''', '''transformers'''])



       @classmethod
       def 		_lowerCamelCase      (		cls							:					Tuple					,		*__SCREAMING_SNAKE_CASE							:					List[str]					,		**__SCREAMING_SNAKE_CASE							:					Dict):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])





       @classmethod
       def 		_lowerCamelCase      (		cls							:					str					,		*__SCREAMING_SNAKE_CASE							:					str					,		**__SCREAMING_SNAKE_CASE							:					List[str]):


           '''simple docstring'''

           requires_backends(cls					,		['''flax''', '''transformers'''])










import unittest

from transformers import DonutProcessor


__snake_case						:List[str]						=					'''naver-clova-ix/donut-base'''

class    _A	(     unittest.TestCase   ):



       def 		_lowerCamelCase      (		self							:					List[str]):


           '''simple docstring'''

           __a							=    DonutProcessor.from_pretrained(__SCREAMING_SNAKE_CASE)





       def 		_lowerCamelCase      (		self							:					Tuple):


           '''simple docstring'''

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

           __a							=    (
               '''<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>'''
           )
           __a							=    self.processor.tokenajson(__SCREAMING_SNAKE_CASE)

           self.assertDictEqual(__SCREAMING_SNAKE_CASE					,		__SCREAMING_SNAKE_CASE)





