input: Write a function to align text in a table to the left, right, and center.
  assert align_text_table([('Name', 'Age', 'Gender'), ('John', '21', 'Male'), ('Doe', '25', 'Female')]) == (
      ["Name      Age       Gender   ", "John      21        Male     ", "Doe       25        Female   "],
      ["      Name      Age      Gender", "      John       21       Male", "      Doe        25     Female"],
      ["    Name     Age     Gender  ", "    John      21      Male    ", "    Doe       25      Female  "]
  )
  assert align_text_table([('A', 'B', 'C'), ('D', 'E', 'F')]) == (
      ["A         B         C        ", "D         E         F        "],
      ["         A         B         C", "         D         E         F"],
      ["    A         B         C    ", "    D         E         F    "]
  )
output: def align_text_table(rows):
      # Determine the maximum width for each column
      col_widths = [max(len(item) for item in col) for col in zip(*rows)]
      
      # Define alignment functions
      def align_left(row):
          return '   '.join(item.ljust(width) for item, width in zip(row, col_widths))
      
      def align_right(row):
          return '   '.join(item.rjust(width) for item, width in zip(row, col_widths))
      
      def align_center(row):
          return '   '.join(item.center(width) for item, width in zip(row, col_widths))
  
      # Apply alignment functions to all rows
      left_aligned = [align_left(row) for row in rows]
      right_aligned = [align_right(row) for row in rows]
      center_aligned = [align_center(row) for row in rows]
  
      return left_aligned, right_aligned, center_aligned