






"""simple docstring"""







import unittest

from transformers import DonutProcessor


lowerCAmelCase_						:     Union[str, Any]							  =   '''naver-clova-ix/donut-base'''





class 	UpperCamelCase_			(							unittest.TestCase	):



  def 		UpperCamelCase_					(   self					)      ->      Any:



         """simple docstring"""





         UpperCAmelCase						     =      DonutProcessor.from_pretrained(lowerCamelCase_					)



  def 		UpperCamelCase_					(   self					)      ->      List[Any]:



         """simple docstring"""





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

         UpperCAmelCase						     =      (
             """<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>"""
         )
         UpperCAmelCase						     =      self.processor.tokenajson(lowerCamelCase_					)

         self.assertDictEqual(lowerCamelCase_			,		lowerCamelCase_					)




'''simple docstring'''






import re


def    _snake_case  (	A			)		->       bool:
							lowerCAmelCase__			  =      re.compile(R'''^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$'''			)
							if match := re.search(A					,       A			):
														return match.string == phone
							return False


if __name__ == "__main__":
		print(indian_phone_validator('''+918827897895'''))