human
Here's a good function header given the following:
I wrote the below code

    def _merge_data(summary, fault):
        result = {}
        uuid = summary['event-id']
        del summary['event-id']
        result[uuid] = OrderedDict()
        result[uuid]['summary'] = summary
        result[uuid]['fault'] = fault
        return result
    result = {}
    summary = []
    summary_data = {}
    fault_data = {}
    data_key = None
    for line in output.split('\n'):
        if line.startswith('-'):
            if (summary and summary_data and fault_data):
                result.update(_merge_data(summary_data, fault_data))
                summary = []
                summary_data = {}
                fault_data = {}
                continue
            else:
                continue
        if (not summary):
            summary.append(line)
            continue
        if (summary and (not summary_data)):
            summary.append(line)
            summary_data = _parse_fmdump('\n'.join(summary))[0]
            continue
        if (summary and summary_data):
            if (line.startswith('    ') and data_key):
                fault_data[data_key] = '{0}\n{1}'.format(fault_data[data_key], line.strip())
            elif (':' in line):
                line = line.split(':')
                data_key = line[0].strip()
                fault_data[data_key] = ':'.join(line[1:]).strip()
                if (data_key == 'Platform'):
                    fault_data['Chassis_id'] = fault_data[data_key][fault_data[data_key].index('Chassis_id'):].split(':')[(-1)].strip()
                    fault_data[data_key] = fault_data[data_key][0:fault_data[data_key].index('Chassis_id')].strip()
    result.update(_merge_data(summary_data, fault_data))
    return result

What's a good function header?
assistant
#Here's a good function header.

def _parse_fmadm_faulty(output):