





import tempfile
import unittest

from make_student import create_student_by_copying_alternating_layers

from transformers import AutoConfig
from transformers.file_utils import cached_property
from transformers.testing_utils import require_torch


UpperCamelCase__           =			"sshleifer/bart-tiny-random"
UpperCamelCase__           =			"patrickvonplaten/t5-tiny-random"

@require_torch
class 							__SCREAMING_SNAKE_CASE       (  unittest.TestCase							):






							@cached_property
							def 					_lowerCamelCase		(    self	):
														return AutoConfig.from_pretrained(UpperCamelCase_	)






							def 					_lowerCamelCase		(    self	):
														UpperCamelCase__					  =      create_student_by_copying_alternating_layers(UpperCamelCase_	,			tempfile.mkdtemp()	,			e=1	,			d=1	)
														self.assertEqual(student.config.num_hidden_layers	,			1	)






							def 					_lowerCamelCase		(    self	):
														UpperCamelCase__					  =      create_student_by_copying_alternating_layers(UpperCamelCase_	,			tempfile.mkdtemp()	,			e=1	,			d=UpperCamelCase_	)






							def 					_lowerCamelCase		(    self	):
														UpperCamelCase__					  =      create_student_by_copying_alternating_layers(UpperCamelCase_	,			tempfile.mkdtemp()	,			e=1	,			d=UpperCamelCase_	)
														self.assertEqual(student.config.encoder_layers	,			1	)
														self.assertEqual(student.config.decoder_layers	,			self.teacher_config.encoder_layers	)






							def 					_lowerCamelCase		(    self	):
														UpperCamelCase__					  =      create_student_by_copying_alternating_layers(UpperCamelCase_	,			tempfile.mkdtemp()	,			e=1	,			d=1	)
														self.assertEqual(student.config.encoder_layers	,			1	)
														self.assertEqual(student.config.decoder_layers	,			1	)







							def 					_lowerCamelCase		(    self	):


														with self.assertRaises(UpperCamelCase_	):
																					create_student_by_copying_alternating_layers(UpperCamelCase_	,			tempfile.mkdtemp()	,			e=UpperCamelCase_	,			d=UpperCamelCase_	)








'''simple docstring'''
import requests
from bsa import BeautifulSoup


def      a (     __a = "AAPL"  )    ->      str:



					'''simple docstring'''






					UpperCamelCase__  :str				   =					f'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
					UpperCamelCase__  :Tuple				   =					BeautifulSoup(requests.get(__a  ).text					,   '''html.parser'''  )
					UpperCamelCase__  :Tuple				   =					'''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}""")