code: def test_algorithm_returns(self):
      for period in PERIODS:
          np.testing.assert_almost_equal(
              [
                  x["algorithm_period_return"]
                  for x in self.metrics[period]
              ],
              [
                  (1 + RETURNS_BASE) ** x["trading_days"] - 1
                  for x in self.metrics[period]
              ],
              DECIMAL_PLACES,
          )
  
imports: import datetime
  import pandas
  import numpy
  from zipline.utils import factory
  from zipline.finance.trading import SimulationParameters
  import zipline.testing.fixtures
  from zipline.finance.metrics import _ClassicRiskMetrics
label_desc: Use image node_id 7 for calling the TestRisk obj's underlying member method code with example usage: obj.test_algorithm_returns() without return types