code: def _format_list_objects(result):
      
  
      all_keys = set()
      for item in result:
          all_keys = all_keys.union(item.keys())
  
      all_keys = sorted(all_keys)
      table = Table(all_keys)
  
      for item in result:
          values = []
          for key in all_keys:
              value = iter_to_table(item.get(key))
              values.append(value)
  
          table.add_row(values)
  
      return table
docs: Format list of objects into a table.