




"""simple docstring"""

import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin





class 							lowercase_			(	unittest.TestCase     ,      __lowerCAmelCase				):



 '''simple docstring'''

 def      lowerCAmelCase_				(					self			:			Optional[Any]						):
       _A     =  load_tool('text-classification'						)
       self.tool.setup()
       _A     =  load_tool('text-classification'       ,				remote=_UpperCAmelCase						)

 def      lowerCAmelCase_				(					self			:			Tuple						):
       _A     =  self.tool('That\'s quite cool'       ,				['positive', 'negative']						)
       self.assertEqual(_UpperCAmelCase       ,				'positive'						)

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

 def      lowerCAmelCase_				(					self			:			List[str]						):
       _A     =  self.tool(text='That\'s quite cool'       ,				labels=['positive', 'negative']						)
       self.assertEqual(_UpperCAmelCase       ,				'positive'						)



 def      lowerCAmelCase_				(					self			:			Any						):
       _A     =  self.remote_tool(text='That\'s quite cool'       ,				labels=['positive', 'negative']						)
       self.assertEqual(_UpperCAmelCase       ,				'positive'						)



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

def  __lowerCamelCase					( _lowercase			)       ->      str:

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

     UpperCamelCase						    =					precision
     UpperCamelCase						    =					ceil(precision / 14			)
     UpperCamelCase						    =					426880 * Decimal(10005			).sqrt()
     UpperCamelCase						    =					1
     UpperCamelCase						    =					13591409
     UpperCamelCase						    =					Decimal(_lowercase			)
     for k in range(1						,     _lowercase			):
          UpperCamelCase						    =					factorial(6 * k			) // (factorial(3 * k			) * factorial(_lowercase			) ** 3)
          linear_term += 545140134
          exponential_term *= -262537412640768000
          partial_sum += Decimal(multinomial_term * linear_term			) / exponential_term
     return str(constant_term / partial_sum			)[:-1]


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


