



'''simple docstring'''





import unittest
from pathlib import Path

from transformers import is_vision_available, load_tool
from transformers.testing_utils import get_tests_dir

from .test_tools_common import ToolTesterMixin


if is_vision_available():
   from PIL import Image






class       lowerCamelCase_					(       unittest.TestCase     ,     __lowerCamelCase  ):
  """simple docstring"""




  def 		_lowercase  (				self   :			Dict     )      ->      Optional[int]:
    __lowerCamelCase : Tuple					 =				load_tool('image-segmentation'     )
    self.tool.setup()
    __lowerCamelCase : List[str]					 =				load_tool('image-segmentation'    ,			remote=_a     )




  def 		_lowercase  (				self   :			List[Any]     )      ->      Tuple:
    __lowerCamelCase : int					 =				Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'     )     ) / '000000039769.png'     )
    __lowerCamelCase : List[str]					 =				self.tool(_a    ,			'cat'     )
    self.assertTrue(isinstance(_a    ,			Image.Image     )     )




  def 		_lowercase  (				self   :			Tuple     )      ->      Tuple:
    __lowerCamelCase : str					 =				Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'     )     ) / '000000039769.png'     )
    __lowerCamelCase : Optional[int]					 =				self.remote_tool(_a    ,			'cat'     )
    self.assertTrue(isinstance(_a    ,			Image.Image     )     )




  def 		_lowercase  (				self   :			List[Any]     )      ->      Any:
    __lowerCamelCase : List[Any]					 =				Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'     )     ) / '000000039769.png'     )
    __lowerCamelCase : Union[str, Any]					 =				self.tool(image=_a    ,			label='cat'     )
    self.assertTrue(isinstance(_a    ,			Image.Image     )     )




  def 		_lowercase  (				self   :			str     )      ->      int:
    __lowerCamelCase : Optional[int]					 =				Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'     )     ) / '000000039769.png'     )
    __lowerCamelCase : Optional[Any]					 =				self.remote_tool(image=_a    ,			label='cat'     )
    self.assertTrue(isinstance(_a    ,			Image.Image     )     )











'''simple docstring'''





import decimal

def  a_  (							)   ->   int:
  __lowerCamelCase : int					 =				0
  __lowerCamelCase : Any					 =				decimal.Context(prec=105 )
  for i in range(2 ,100 ):
    __lowerCamelCase : str					 =				decimal.Decimal(_lowerCAmelCase )
    __lowerCamelCase : int					 =				number.sqrt(_lowerCAmelCase )
    if len(str(_lowerCAmelCase ) ) > 1:
      answer += int(str(_lowerCAmelCase )[0] )
      __lowerCamelCase : List[str]					 =				str(_lowerCAmelCase )[2:101]
      answer += sum(int(_lowerCAmelCase ) for x in sqrt_number_str )
  return answer


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   print(f'''{solution() = }''')






