





UpperCAmelCase_   				=  {
    """+""": lambda x, y: x + y,
    """-""": lambda x, y: x - y,
    """*""": lambda x, y: x * y,
    """/""": lambda x, y: x / y,
}





def     lowerCamelCase__  (  UpperCamelCase__      :							Dict    )      ->			Dict:



					'''simple docstring'''




					return c.isdigit()





def     lowerCamelCase__  (  UpperCamelCase__      :							Any    )      ->			List[str]:



					'''simple docstring'''




					_snake_case						=					[]

					# iterate over the string in reverse order
					for c in expression.split()[::-1]:
										# push operand to stack
										if is_operand(UpperCamelCase__    ):
															stack.append(int(UpperCamelCase__    )    )

										else:
															# pop values from stack can calculate the result
															# push the result onto the stack again
															_snake_case						=					stack.pop()
															_snake_case						=					stack.pop()
															stack.append(calc[c](UpperCamelCase__							,     UpperCamelCase__    )    )

					return stack.pop()


# Driver code
if __name__ == "__main__":
					UpperCAmelCase_   				=  """+ 9 * 2 6"""
					print(evaluate(test_expression))

					UpperCAmelCase_   				=  """/ * 10 2 + 4 1 """
					print(evaluate(test_expression))










import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
					import torch
class       UpperCamelCase_		(	unittest.TestCase				,	_lowerCamelCase       ):




					def 						lowerCAmelCase      (		self	)		->				str:
										_snake_case						=					load_tool('speech-to-text'	)
										self.tool.setup()




					def 						lowerCAmelCase      (		self	)		->				Optional[Any]:
										_snake_case						=					self.tool(torch.ones(3000	)	)
										self.assertEqual(lowerCAmelCase_					,    ' you'	)






					def 						lowerCAmelCase      (		self	)		->				Optional[int]:
										_snake_case						=					self.tool(audio=torch.ones(3000	)	)
										self.assertEqual(lowerCAmelCase_					,    ' you'	)



