'''simple docstring'''


import unittest

from transformers import DonutProcessor


__lowerCAmelCase	:       str						       =	"naver-clova-ix/donut-base"






class 						A   (   unittest.TestCase   ):





							def       snake_case__						(      self				:							Tuple	)							->	List[Any]:
								__UpperCAmelCase							=			DonutProcessor.from_pretrained(__a	)






							def       snake_case__						(      self				:							int	)							->	int:
								__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(__a	)

								self.assertDictEqual(__a     ,		__a	)

'''simple docstring'''


import requests
from bsa import BeautifulSoup





def       lowerCAmelCase					(		UpperCamelCase__				:   str = "AAPL"       ):


	"""simple docstring"""
	__UpperCAmelCase							=			f"""https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"""
	__UpperCAmelCase							=			BeautifulSoup(requests.get(UpperCamelCase__       ).text    ,					'''html.parser'''       )
	__UpperCAmelCase							=			'''My(6px) Pos(r) smartphone_Mt(6px)'''
	return soup.find('''div'''    ,					class_=class_       ).find('''span'''       ).text


if __name__ == "__main__":
					for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
										print(F"""Current {symbol:<4} stock price is {stock_price(symbol):>8}""")
