code: def test_calmar_ratio(df):
      cagr = df.calc_cagr()
      mdd = df.calc_max_drawdown()
  
      a = df.calc_calmar_ratio()
      assert np.allclose(a, cagr / abs(mdd))
  
imports: import ffn
  import pandas
  import numpy
  from pytest import fixture
  from numpy.testing import assert_almost_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_calmar_ratio(df) without return types