docs: def print_table(document, *columns):
      """ Print json document as table """
      headers = []
      for _, header in columns:
          headers.append(header)
      table = []
      for element in document:
          row = []
          for item, _ in columns:
              if item in element:
                  row.append(element[item])
              else:
                  row.append(None)
          table.append(row)
      print(tabulate.tabulate(table, headers))