<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_results(self):
 """ Get details about the alignments that have been performed. :return: A dict of dicts. The keys of the top level are 'template', 'complement' and '2d'. Each of these dicts contains the following fields: * status: Can be 'no data', 'no match found', or 'match found'. * direction: Can be 'forward', 'reverse'. * ref_name: Name of reference. * ref_span: Section of reference aligned to, as a tuple (start, end). * seq_span: Section of the called sequence that aligned, as a tuple (start, end). * seq_len: Total length of the called sequence. * num_aligned: Number of bases that aligned to bases in the reference. * num_correct: Number of aligned bases that match the reference. * num_deletions: Number of bases in the aligned section of the reference that are not aligned to bases in the called sequence. * num_insertions: Number of bases in the aligned section of the called sequence that are not aligned to bases in the reference. * identity: The fraction of aligned bases that are correct (num_correct / num_aligned). * accuracy: The overall basecall accuracy, according to the alignment. (num_correct / (num_aligned + num_deletions + num_insertions)). Note that if the status field is not 'match found', then all the other fields will be absent. """

        summary = self.handle.get_summary_data(self.group_name)
        results = {'template': {'status': 'no data'},
                   'complement': {'status': 'no data'},
                   '2d': {'status': 'no data'}}
        if 'genome_mapping_template' in summary:
            results['template'] = self._get_results(summary['genome_mapping_template'])
        if 'genome_mapping_complement' in summary:
            results['complement'] = self._get_results(summary['genome_mapping_complement'])
        if 'genome_mapping_2d' in summary:
            results['2d'] = self._get_results(summary['genome_mapping_2d'])
        return results