



import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin
class SCREAMING_SNAKE_CASE_  (   unittest.TestCase    ,			snake_case_   ):






						def UpperCAmelCase_			( self : Tuple		)							->      List[str]:







							"""simple docstring"""


							snake_case_						:     str     =		load_tool('text-classification'		)
							self.tool.setup()
							snake_case_						:     Dict     =		load_tool('text-classification'						,				remote=_A		)






						def UpperCAmelCase_			( self : List[Any]		)							->      List[str]:







							"""simple docstring"""


							snake_case_						:     List[str]     =		self.tool('That\'s quite cool'						,				['positive', 'negative']		)
							self.assertEqual(_A						,				'positive'		)






						def UpperCAmelCase_			( self : Tuple		)							->      Dict:







							"""simple docstring"""


							snake_case_						:     Union[str, Any]     =		self.remote_tool('That\'s quite cool'						,				['positive', 'negative']		)
							self.assertEqual(_A						,				'positive'		)






						def UpperCAmelCase_			( self : Dict		)							->      str:







							"""simple docstring"""


							snake_case_						:     Dict     =		self.tool(text='That\'s quite cool'						,				labels=['positive', 'negative']		)
							self.assertEqual(_A						,				'positive'		)






						def UpperCAmelCase_			( self : Union[str, Any]		)							->      Dict:







							"""simple docstring"""


							snake_case_						:     Optional[int]     =		self.remote_tool(text='That\'s quite cool'						,				labels=['positive', 'negative']		)
							self.assertEqual(_A						,				'positive'		)








from decimal import Decimal, getcontext
from math import ceil, factorial


def 							SCREAMING_SNAKE_CASE__  (      __a				):

	if not isinstance(__a				,	__a				):
		raise TypeError('Undefined for non-integers'				)
	elif precision < 1:
		raise ValueError('Undefined for non-natural numbers'				)

	snake_case_						:     Dict     =		precision
	snake_case_						:     str     =		ceil(precision / 14				)
	snake_case_						:     str     =		42_68_80 * Decimal(1_00_05				).sqrt()
	snake_case_						:     Tuple     =		1
	snake_case_						:     int     =		13_59_14_09
	snake_case_						:     Tuple     =		Decimal(__a				)
	for k in range(1				,	__a				):
		snake_case_						:     List[Any]     =		factorial(6 * k				) // (factorial(3 * k				) * factorial(__a				) ** 3)
		linear_term += 5_45_14_01_34
		exponential_term *= -26_25_37_41_26_40_76_80_00
		partial_sum += Decimal(multinomial_term * linear_term				) / exponential_term
	return str(constant_term / partial_sum				)[:-1]


if __name__ == "__main__":
						_SCREAMING_SNAKE_CASE 		=						50
						print(F'''The first {n} digits of pi is: {pi(n)}''')

