def get_file_or_default(metric_file):
    """ Returns the module name from which to extract metrics. Defaults to cohorts.metrics

    :param str metric_file:  The name of the module to extract metrics from
    :return: The name of the module where metric functions reside
    """
    return metric_file if metric_file is not None else 'cohorts.metrics'