def parse_output(actual_out = "", horizontal = False, mearge_header = True):
    """
        commmon parser for all show commands will return touple of following
        @param heading : first line of output
        @param header: Second line of output
        @param params: list of parameters 
    
    """
    if horizontal:
        data =  actual_out.split('\n')
        heading = data.pop(0)
        header_line1 = data.pop(0)
        header_line2 = data.pop(0)
        row_data = data[-3]
        index = -4
        while not row_data:
            row_data = data[index]
            index = index - 1
        no_of_rows = row_data.split(':')[1]
        if mearge_header:
            return(heading, get_merged_header(header_line1, header_line2), no_of_rows)
        else:
            return(heading, header_line1 + header_line2, no_of_rows)
    else:
        data =  actual_out.split('\n')
        heading = data.pop(0)
        header = data.pop(0)
        params = [item.split(':')[0].strip() for item in  data if item.split(':')[0].strip()]
        # handled beast color code
        # TODO: Create separate method for removing color code
        for i, item in enumerate(params):
            if "\x1b[0m" in item:
                params[i] = item[4:]
        if params in '\x1b[1m':
            params.remove('\x1b[1m')
        return(heading, header, params)
dataset/ETHPy150Open aerospike/aerospike-admin/test/e2e/test_util.py/parse_output/swapped operands of `in`