'''simple docstring'''




from typing import TYPE_CHECKING

from ..utils import _LazyModule


_a   :	List[Any] 							=   {
    "config": [
        "EXTERNAL_DATA_FORMAT_SIZE_LIMIT",
        "OnnxConfig",
        "OnnxConfigWithPast",
        "OnnxSeq2SeqConfigWithPast",
        "PatchingSpec",
    ],
    "convert": ["export", "validate_model_outputs"],
    "features": ["FeaturesManager"],
    "utils": ["ParameterFormat", "compute_serialized_parameters_size"],
}


if TYPE_CHECKING:
   from .config import (
       EXTERNAL_DATA_FORMAT_SIZE_LIMIT,
       OnnxConfig,
       OnnxConfigWithPast,
       OnnxSeqaSeqConfigWithPast,
       PatchingSpec,
   )
   from .convert import export, validate_model_outputs
   from .features import FeaturesManager
   from .utils import ParameterFormat, compute_serialized_parameters_size

else:
   import sys

   _a   :	int 							=   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)







'''simple docstring'''




def _lowercase	(      lowerCamelCase__							,    lowerCamelCase__						)					->       float:





       """simple docstring"""


       if discount_rate < 0:
              raise ValueError("Discount rate cannot be negative"						)
       if not cash_flows:
              raise ValueError("Cash flows list cannot be empty"						)
       __UpperCAmelCase  :				Tuple       				=		sum(
           cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(lowerCamelCase__						)						)
       return round(lowerCamelCase__							,    ndigits=2						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()






