code: def common_sense_ratio(returns):
      """
      Common sense ratio is the multiplication of the tail ratio and the
      Gain-to-Pain-Ratio -- sum(profits) / sum(losses).
  
      See http://bit.ly/1ORzGBk for more information on motivation of
      this metric.
  
  
      Parameters
      ----------
      returns : pd.Series
          Daily returns of the strategy, noncumulative.
           - See full explanation in tears.create_full_tear_sheet.
  
      Returns
      -------
      float
          common sense ratio
      """
  
      return ep.tail_ratio(returns) * (1 + ep.annual_return(returns))
  
imports: from __future__ import division
  from collections import OrderedDict
  from functools import partial
  import empyrical
  import numpy
  import pandas
  import scipy
  import scipy.stats
  from sklearn import linear_model
  from .deprecate import deprecated
  from .interesting_periods import PERIODS
  from .txn import get_turnover
  from .utils import APPROX_BDAYS_PER_MONTH, APPROX_BDAYS_PER_YEAR
  from .utils import DAILY
label_desc: Use image node_id 15 for calling a global function with example usage: common_sense_ratio(returns) and returns: unknown