"""simple docstring"""





import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


__A     = logging.get_logger(__name__)
class        _snake_case   (    a__						):






						def __init__(				self					:	str							,    *UpperCAmelCase					:	Any							,    **UpperCAmelCase					:	str			):
													warnings.warn(
													    "The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
													    " use FlavaImageProcessor instead."							,    __UpperCAmelCase							,    )
													super().__init__(*__UpperCAmelCase							,    **__UpperCAmelCase			)






"""simple docstring"""





def  __A   (_SCREAMING_SNAKE_CASE     ,   _SCREAMING_SNAKE_CASE			)					->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'			)
  lowerCAmelCase__			:Union[str, Any]											=							sum(
      cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_SCREAMING_SNAKE_CASE			)			)
  return round(_SCREAMING_SNAKE_CASE     ,   ndigits=2			)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
