code: def cumulative_returns(
      data: pd.DataFrame, dividend: NUMERIC = 0
  ) -> pd.DataFrame:
      """Returns DataFrame with cumulative returns
  
      :math:`\\displaystyle R = \\dfrac{\\text{price}_{t_i} - \\text{price}_{t_0} + \\text{dividend}}
      {\\text{price}_{t_0}}`
  
      :param data: A dataframe of daily stock prices
  
      :param dividend: Paid dividend
      :type dividend: :py:data:`~.finquant.data_types.NUMERIC`, default: 0
  
      :return: A dataframe of cumulative returns of given stock prices.
      """
      # Type validations:
      type_validation(data=data, dividend=dividend)
      data = data.dropna(axis=0, how="any")
      return ((data - data.iloc[0] + dividend) / data.iloc[0]).astype(
          np.float64
      )
  
file_path: FinQuant/finquant/returns.py
imports: from typing import Any
  import numpy
  import pandas
  from finquant.data_types import ARRAY_OR_SERIES, FLOAT, INT, NUMERIC, SERIES_OR_DATAFRAME
  from finquant.type_utilities import type_validation
label_desc: Use image node_id 1 for calling a global function with example usage: cumulative_returns(data, dividend) and returns: unknown