<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_list(self, dataframe=False):
 """ Compute the value for multi-valued aggregations :returns: a dict containing 'keys' and their corresponding 'values' """


        res = self.fetch_aggregation_results()
        keys = []
        values = []
        for bucket in res['aggregations'][str(self.parent_agg_counter - 1)]['buckets']:
            keys.append(bucket['key'])
            values.append(bucket['doc_count'])

        result = {"keys": keys, "values": values}
        if dataframe:
            result = pd.DataFrame.from_records(result)
        return result