def get_my_polls_command(instance, player, arguments = None):
  """ Get the polls created by a player in the instance.

  Args:
    instance: The parent GameInstance model of the polls.
    player: The email of the player requesting the polls.
    arguments: Not used, can be any value.

  Finds all polls created by this player.

  Returns:
    A list of two item lists with each containing the
    id number of the poll and its question.

  Raises:
    ValueError if the player is not in the instance.
  """
  instance.check_player(player)
  query = instance.get_messages_query('', '', sender = player)
  polls = query.fetch(1000)
  return [[poll.key().id(), poll.get_content()[0]] for poll in polls[::-1]]