





"""simple docstring"""
__UpperCamelCase			:		Union[str, Any]		    =   {
    '''+''': lambda x, y: x + y,
    '''-''': lambda x, y: x - y,
    '''*''': lambda x, y: x * y,
    '''/''': lambda x, y: x / y,
}

def 						_SCREAMING_SNAKE_CASE       (_UpperCAmelCase :  Union[str, Any]       ):
 return c.isdigit()

def 						_SCREAMING_SNAKE_CASE       (_UpperCAmelCase :  Any       ):
 lowerCAmelCase  							=      []

 # 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
   lowerCAmelCase  							=      stack.pop()
   lowerCAmelCase  							=      stack.pop()
   stack.append(calc[c](_UpperCAmelCase   ,			_UpperCAmelCase       )       )

 return stack.pop()


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

       __UpperCamelCase			:		List[Any]		    =   '''/ * 10 2 + 4 1 '''
       print(evaluate(test_expression))












"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


__UpperCamelCase			:		List[Any]		    =   {'''configuration_yoso''': ['''YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''YosoConfig''']}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __UpperCamelCase			:		Dict		    =   [
           '''YOSO_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''YosoForMaskedLM''',
           '''YosoForMultipleChoice''',
           '''YosoForQuestionAnswering''',
           '''YosoForSequenceClassification''',
           '''YosoForTokenClassification''',
           '''YosoLayer''',
           '''YosoModel''',
           '''YosoPreTrainedModel''',
       ]


if TYPE_CHECKING:
       from .configuration_yoso import YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP, YosoConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_yoso import (
                  YOSO_PRETRAINED_MODEL_ARCHIVE_LIST,
                  YosoForMaskedLM,
                  YosoForMultipleChoice,
                  YosoForQuestionAnswering,
                  YosoForSequenceClassification,
                  YosoForTokenClassification,
                  YosoLayer,
                  YosoModel,
                  YosoPreTrainedModel,
              )


else:
       import sys

       __UpperCamelCase			:		Any		    =   _LazyModule(__name__, globals()['''__file__'''], _import_structure)





