





def 				lowerCAmelCase_ (							A_    ,A_):




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


if __name__ == "__main__":
   import doctest

   doctest.testmod()









'''simple docstring'''



SCREAMING_SNAKE_CASE							=						frozenset(
    [
        'prompt',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
        'cross_attention_kwargs',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['prompt', 'negative_prompt'])

SCREAMING_SNAKE_CASE							=						frozenset([])

SCREAMING_SNAKE_CASE							=						frozenset(['image'])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        'image',
        'height',
        'width',
        'guidance_scale',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['image'])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        'prompt',
        'image',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['prompt', 'image', 'negative_prompt'])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        # Text guided image variation with an image mask
        'prompt',
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['prompt', 'image', 'mask_image', 'negative_prompt'])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        # image variation with an image mask
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['image', 'mask_image'])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        'example_image',
        'image',
        'mask_image',
        'height',
        'width',
        'guidance_scale',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['example_image', 'image', 'mask_image'])

SCREAMING_SNAKE_CASE							=						frozenset(['class_labels'])

SCREAMING_SNAKE_CASE							=						frozenset(['class_labels'])

SCREAMING_SNAKE_CASE							=						frozenset(['batch_size'])

SCREAMING_SNAKE_CASE							=						frozenset([])

SCREAMING_SNAKE_CASE							=						frozenset(['batch_size'])

SCREAMING_SNAKE_CASE							=						frozenset([])

SCREAMING_SNAKE_CASE							=						frozenset(
    [
        'prompt',
        'audio_length_in_s',
        'guidance_scale',
        'negative_prompt',
        'prompt_embeds',
        'negative_prompt_embeds',
        'cross_attention_kwargs',
    ]
)

SCREAMING_SNAKE_CASE							=						frozenset(['prompt', 'negative_prompt'])
SCREAMING_SNAKE_CASE							=						frozenset(['input_tokens'])

SCREAMING_SNAKE_CASE							=						frozenset(['input_tokens'])



