






'''simple docstring'''







from collections import namedtuple

__lowerCAmelCase					   =       namedtuple("from_to", "from_ to")

__lowerCAmelCase					   =       {
    "atm": from_to(1, 1),
    "pascal": from_to(0.000_0098, 10_13_25),
    "bar": from_to(0.98_6923, 1.0_1325),
    "kilopascal": from_to(0.0098_6923, 101.325),
    "megapascal": from_to(9.8_6923, 0.10_1325),
    "psi": from_to(0.06_8046, 14.6959),
    "inHg": from_to(0.033_4211, 29.9213),
    "torr": from_to(0.0013_1579, 7_60),
}


def 			__UpperCamelCase				(			lowercase_					:     float      ,					lowercase_					:     str      ,					lowercase_					:     str      ):
       """simple docstring"""




       if from_type not in PRESSURE_CONVERSION:
              raise ValueError(
                  F'Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'
                  + ', '.join(lowercase_      )      )
       if to_type not in PRESSURE_CONVERSION:
              raise ValueError(
                  F'Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'
                  + ', '.join(lowercase_      )      )
       return (
           value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
       )


if __name__ == "__main__":
  import doctest

  doctest.testmod()












'''simple docstring'''







import re


def 			__UpperCamelCase				(			lowercase_					:     int      ):
       """simple docstring"""




       def docstring_decorator(lowercase_					:     int      ):
              a_	    = fn.__doc__
              a_	    = func_doc.split('\n'      )
              a_	    = 0
              while i < len(lowercase_      ) and re.search(R'^\s*Examples?:\s*$'      ,					lines[i]      ) is None:
                     i += 1
              if i < len(lowercase_      ):
                     a_	    = example_docstring
                     a_	    = '\n'.join(lowercase_      )
              else:
                     raise ValueError(
                         F'The function {fn} should have an empty \'Examples:\' in its docstring as placeholder, '
                         F'current docstring is:\n{func_doc}'      )
              a_	    = func_doc
              return fn

       return docstring_decorator




