code: def convert_dict_outputs_to_lists(outputs, keys):
      output_lists = [[] for _ in range(len(keys))]
      for output in outputs:
          for i, key in enumerate(keys):
              if isinstance(output[key], torch.Tensor):
                  output_lists[i].extend(tensor2list(output[key]))
              else:
                  output_lists[i].extend(output[key])
  
      return output_lists
  
imports: import collections
  import json
  import re
  import string
  import torch
  from tqdm import tqdm
  from nemo.collections.nlp.parts.utils_funcs import tensor2list
  from nemo.utils import logging
label_desc: Use image node_id 8 for calling the QAMetrics obj's underlying member method code with example usage: obj.convert_dict_outputs_to_lists(outputs, keys) and returns: output_lists