'''simple docstring'''




import re





def      _UpperCAmelCase    (							_UpperCamelCase    :	Optional[int]   )	->      str:
    def docstring_decorator(_UpperCamelCase    :	Optional[Any]   ):
        A_     =   fn.__doc__
        A_     =   func_doc.split('''\n'''   )
        A_     =   0
        while i < len(_UpperCamelCase   ) and re.search(R'''^\s*Examples?:\s*$''',   lines[i]   ) is None:
            i += 1
        if i < len(_UpperCamelCase   ):
            A_     =   example_docstring
            A_     =   '''\n'''.join(_UpperCamelCase   )
        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







'''simple docstring'''




from scipy.constants import g





def      _UpperCAmelCase    (							_UpperCamelCase    :	float,   _UpperCamelCase    :	float   )	->      float:
    if mass < 0:
        # handling of negative values of mass
        raise ValueError('''The mass of a body cannot be negative'''   )
    if height < 0:
        # handling of negative values of height
        raise ValueError('''The height above the ground cannot be negative'''   )
    return mass * g * height


if __name__ == "__main__":
  from doctest import testmod

  testmod(name='potential_energy')






