



'''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						, A  ):




					'''simple docstring'''



					def     __UpperCAmelCase  (	self					:						Any       )	->							List[Any]:



						'''simple docstring'''





						_lowercase       :							Optional[int]  	=		load_tool('image-segmentation'       )
						self.tool.setup()
						_lowercase       :							Union[str, Any]  	=		load_tool('image-segmentation'  ,	remote=UpperCamelCase_       )




					def     __UpperCAmelCase  (	self					:						str       )	->							Optional[Any]:



						'''simple docstring'''





						_lowercase       :							Dict  	=		Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'       )       ) / '000000039769.png'       )
						_lowercase       :							Union[str, Any]  	=		self.tool(UpperCamelCase_  ,	'cat'       )
						self.assertTrue(isinstance(UpperCamelCase_  ,	Image.Image       )       )




					def     __UpperCAmelCase  (	self					:						Optional[int]       )	->							Tuple:



						'''simple docstring'''





						_lowercase       :							Dict  	=		Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'       )       ) / '000000039769.png'       )
						_lowercase       :							Tuple  	=		self.remote_tool(UpperCamelCase_  ,	'cat'       )
						self.assertTrue(isinstance(UpperCamelCase_  ,	Image.Image       )       )




					def     __UpperCAmelCase  (	self					:						List[Any]       )	->							Optional[int]:



						'''simple docstring'''





						_lowercase       :							Union[str, Any]  	=		Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'       )       ) / '000000039769.png'       )
						_lowercase       :							Optional[int]  	=		self.tool(image=UpperCamelCase_  ,	label='cat'       )
						self.assertTrue(isinstance(UpperCamelCase_  ,	Image.Image       )       )




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



						'''simple docstring'''





						_lowercase       :							Optional[Any]  	=		Image.open(Path(get_tests_dir('fixtures/tests_samples/COCO'       )       ) / '000000039769.png'       )
						_lowercase       :							Any  	=		self.remote_tool(image=UpperCamelCase_  ,	label='cat'       )
						self.assertTrue(isinstance(UpperCamelCase_  ,	Image.Image       )       )





'''simple docstring'''

def     __UpperCamelCase					(				_lowercase = 1000       )			->      int:
	_lowercase       :							Dict  	=		0
	_lowercase       :							int  	=		0
	while 1:
		num += 3
		if num >= n:
			break
		total += num
		num += 2
		if num >= n:
			break
		total += num
		num += 1
		if num >= n:
			break
		total += num
		num += 3
		if num >= n:
			break
		total += num
		num += 1
		if num >= n:
			break
		total += num
		num += 2
		if num >= n:
			break
		total += num
		num += 3
		if num >= n:
			break
		total += num
	return total


if __name__ == "__main__":
		print(F'''{solution() = }''')
