

'''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      : List[Any]    )						->				Dict:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE						     =   load_tool("""image-captioning"""    )
      self.tool.setup()
      __SCREAMING_SNAKE_CASE						     =   load_tool("""image-captioning"""      ,							remote=__SCREAMING_SNAKE_CASE    )
 def    UpperCAmelCase__	(	self      : Dict    )						->				Optional[int]:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE						     =   Image.open(Path(get_tests_dir("""fixtures/tests_samples/COCO"""    )    ) / """000000039769.png"""    )
      __SCREAMING_SNAKE_CASE						     =   self.tool(__SCREAMING_SNAKE_CASE    )
      self.assertEqual(__SCREAMING_SNAKE_CASE      ,							"""two cats sleeping on a couch"""    )
 def    UpperCAmelCase__	(	self      : Tuple    )						->				Any:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE						     =   Image.open(Path(get_tests_dir("""fixtures/tests_samples/COCO"""    )    ) / """000000039769.png"""    )
      __SCREAMING_SNAKE_CASE						     =   self.remote_tool(__SCREAMING_SNAKE_CASE    )
      self.assertEqual(__SCREAMING_SNAKE_CASE      ,							"""two cats sleeping on a couch"""    )
 def    UpperCAmelCase__	(	self      : Any    )						->				Optional[int]:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE						     =   Image.open(Path(get_tests_dir("""fixtures/tests_samples/COCO"""    )    ) / """000000039769.png"""    )
      __SCREAMING_SNAKE_CASE						     =   self.tool(image=__SCREAMING_SNAKE_CASE    )
      self.assertEqual(__SCREAMING_SNAKE_CASE      ,							"""two cats sleeping on a couch"""    )


 def    UpperCAmelCase__	(	self      : Tuple    )						->				int:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE						     =   Image.open(Path(get_tests_dir("""fixtures/tests_samples/COCO"""    )    ) / """000000039769.png"""    )
      __SCREAMING_SNAKE_CASE						     =   self.remote_tool(image=__SCREAMING_SNAKE_CASE    )
      self.assertEqual(__SCREAMING_SNAKE_CASE      ,							"""two cats sleeping on a couch"""    )









'''simple docstring'''



def      a__ (						):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE						     =   1

     while True:
          if (
              sorted(str(a__		)		)
              == sorted(str(2 * i		)		)
              == sorted(str(3 * i		)		)
              == sorted(str(4 * i		)		)
              == sorted(str(5 * i		)		)
              == sorted(str(6 * i		)		)
          ):
               return i

          i += 1


if __name__ == "__main__":
  print(solution())






