






'''simple docstring'''





def     _snake_case    (__lowercase    ,      __lowercase):
   return base * power(__lowercase    ,      (exponent - 1)) if exponent else 1


if __name__ == "__main__":
 print("""Raise base to the power of exponent using recursion...""")
 snake_case__      :	int       	=      int(input("""Enter the base: """).strip())
 snake_case__      :	int       	=      int(input("""Enter the exponent: """).strip())
 snake_case__      :	Dict       	=      power(base, abs(exponent))
 if exponent < 0:  # power() does not properly deal w/ negative exponents
  snake_case__      :	Union[str, Any]       	=      1 / result
 print(f'{base} to the power of {exponent} is {result}')













from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
 if not (is_transformers_available() and is_torch_available()):
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 from ...utils.dummy_torch_and_transformers_objects import (
     ImageTextPipelineOutput,
     UniDiffuserPipeline,
 )
else:
 from .modeling_text_decoder import UniDiffuserTextDecoder
 from .modeling_uvit import UniDiffuserModel, UTransformeraDModel
 from .pipeline_unidiffuser import ImageTextPipelineOutput, UniDiffuserPipeline





