code: def _format_dict(result):
      
  
      table = KeyValueTable(['name', 'value'])
      table.align['name'] = 'r'
      table.align['value'] = 'l'
  
      for key, value in result.items():
          value = iter_to_table(value)
          table.add_row([key, value])
  
      return table
docs: Format dictionary responses into key-value table.