code: def calmar_ratio(
      close: Series, method: str = "percent", years: int = 3
  ) -> float:
      """The Calmar Ratio is the percent Max Drawdown Ratio 'typically' over
      the past three years.
  
      Args:
          close (pd.Series): Series of 'close's
          method (str): Max DD calculation options: 'dollar', 'percent', 'log'.
              Default: 'dollar'
          years (int): The positive number of years to use. Default: 3
  
      >>> result = ta.calmar_ratio(close, method="percent", years=3)
      """
      if years <= 0:
          print(
              f"[!] calmar_ratio 'years' argument must be greater than zero."
          )
          return
      close = verify_series(close)
  
      n_years_ago = close.index[-1] - Timedelta(days=365.25 * years)
      close = close[close.index > n_years_ago]
  
      return cagr(close) / max_drawdown(close, method=method)
  
imports: from typing import Tuple
  from numpy import log
  from numpy import nan
  from numpy import sqrt
  from pandas import Series, Timedelta
  from ._core import verify_series
  from ._time import total_time
  from ._math import linear_regression, log_geometric_mean
  from pandas_ta import RATE
  from pandas_ta.performance import drawdown, log_return, percent_return
label_desc: Use image node_id 2 for calling a global function with example usage: calmar_ratio(close, method, years) and returns: unknown