code: def total_pages_in(self, leaderboard_name, page_size=None):
          '''
          Retrieve the total number of pages in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param page_size [int, nil] Page size to be used when calculating the total number of pages.
          @return the total number of pages in the named leaderboard.
          '''
          if page_size is None:
              page_size = self.page_size
  
          return int(
              math.ceil(
                  self.total_members_in(leaderboard_name) /
                  float(page_size))f total_pages_in(self, leaderboard_name, page_size=None):
          '''
          Retrieve the total number of pages in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param page_size [int, nil] Page size to be used when calculating the total number of pages.
          @return the total number of pages in the named leaderboard.
          '''
          if page_size is None:
              page_size = self.page_size
  
          return int(
              math.ceil(
                  self.total_members_in(leaderboard_name) /
                  float(page_size)))
docs: Retrieve the total number of pages in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param page_size [int, nil] Page size to be used when calculating the total number of pages.
          @return the total number of pages in the named leaderboard.