


def 			_a      (    __UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase			):
     if target == 0:
          answer.append(path.copy()			)
     else:
          for index in range(__UpperCamelCase	,	len(__UpperCamelCase			)			):
               if target >= candidates[index]:
                    path.append(candidates[index]			)
                    backtrack(__UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase	,	target - candidates[index]	,	__UpperCamelCase			)
                    path.pop(len(__UpperCamelCase			) - 1			)



def 			_a      (    __UpperCamelCase	,	__UpperCamelCase			):
     a_     :  List[Any]				      =     []  # type: list[int]
     a_     :  Optional[int]				      =     []  # type: list[int]
     backtrack(__UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase	,	__UpperCamelCase	,	0			)
     return answer



def 			_a      (    ):
     print(combination_sum([-8, 2.3, 0]	,	1			)			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       main()





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			,  __snake_case					):



  """simple docstring"""





  def 					lowercase_						(					self					):
      A_								=					load_tool("image-question-answering"					)
      self.tool.setup()
      A_								=					load_tool("image-question-answering"						,    remote=__UpperCamelCase					)

  def 					lowercase_						(					self					):
      A_								=					Image.open(Path(get_tests_dir("fixtures/tests_samples/COCO"					)					) / "000000039769.png"					)
      A_								=					self.tool(__UpperCamelCase						,    "How many cats are sleeping on the couch?"					)
      self.assertEqual(__UpperCamelCase						,    "2"					)

  def 					lowercase_						(					self					):
      A_								=					Image.open(Path(get_tests_dir("fixtures/tests_samples/COCO"					)					) / "000000039769.png"					)
      A_								=					self.remote_tool(__UpperCamelCase						,    "How many cats are sleeping on the couch?"					)
      self.assertEqual(__UpperCamelCase						,    "2"					)

  def 					lowercase_						(					self					):
      A_								=					Image.open(Path(get_tests_dir("fixtures/tests_samples/COCO"					)					) / "000000039769.png"					)
      A_								=					self.tool(image=__UpperCamelCase						,    question="How many cats are sleeping on the couch?"					)
      self.assertEqual(__UpperCamelCase						,    "2"					)

  def 					lowercase_						(					self					):
      A_								=					Image.open(Path(get_tests_dir("fixtures/tests_samples/COCO"					)					) / "000000039769.png"					)
      A_								=					self.remote_tool(image=__UpperCamelCase						,    question="How many cats are sleeping on the couch?"					)
      self.assertEqual(__UpperCamelCase						,    "2"					)






