<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _margtime_mfsnr(template, data):
 """Returns a time series for the matched filter SNR assuming that the template and data have both been normalised and whitened. """

        snr = matched_filter_core(template, data, h_norm=1, psd=None)
        hd_i = snr[0].numpy().real
        return hd_i