<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_ts_stats_significance(self, x, ts, stat_ts_func, null_ts_func, B=1000, permute_fast=False, label_ts=''):
 """ Returns the statistics, pvalues and the actual number of bootstrap samples. """

        stats_ts, pvals, nums = ts_stats_significance(
            ts, stat_ts_func, null_ts_func, B=B, permute_fast=permute_fast)
        return stats_ts, pvals, nums