code: def test_sharpe(self):
      np.testing.assert_equal(
          len(self.algo_returns), len(self.cumulative_metrics.sharpe)
      )
      np.testing.assert_equal(
          all(
              isinstance(x, float)
              for x in self.cumulative_metrics.sharpe
          ),
          True,
      )
  
file_path: catalyst/tests/risk/test_risk_cumulative.py
imports: import numpy
  import pandas
  import catalyst.finance.risk
  from catalyst.utils import factory
  from catalyst.testing.fixtures import WithTradingEnvironment, CatalystTestCase
  from catalyst.finance.trading import SimulationParameters
label_desc: Use image node_id 3 for calling the TestRisk obj's underlying member method code with example usage: obj.test_sharpe() without return types