code: def test_daily_returns():
      orig = [
          [1.0, 1.0 / 2, 1.0 / 3, 1.0 / 4],
          [1.0 / 9, 1.0 / 10, 1.0 / 11, 1.0 / 12],
      ]
      l1 = np.array(range(1, 6)).astype(np.float64)
      l2 = [10 * 0.2 + i * 0.25 for i in range(1, 6)]
      d = {"1": l1, "2": l2}
      df = pd.DataFrame(d)
      ret = daily_returns(df)
      assert all(abs(ret["1"].values - orig[0]) <= 1e-15)
      assert all(abs(ret["2"].values - orig[1]) <= 1e-15)
  
file_path: FinQuant/tests/test_returns.py
imports: import numpy
  import pandas
  from finquant.returns import cumulative_returns, daily_log_returns, daily_returns, historical_mean_return, weighted_mean_daily_returns
label_desc: Use image node_id 2 for calling a global function with example usage: test_daily_returns() without return types