code: def test_calc_total_return(df):
      prc = df.iloc[0:11]
      actual = prc.calc_total_return()
  
      assert len(actual) == 3
      aae(actual["AAPL"], -0.079, 3)
      aae(actual["MSFT"], -0.038, 3)
      aae(actual["C"], 0.012, 3)
  
imports: import ffn
  import pandas
  import numpy
  from pytest import fixture
  from numpy.testing import assert_almost_equal
label_desc: Use image node_id 22 for calling a global function with example usage: test_calc_total_return(df) without return types