code: def rank_for_in(self, leaderboard_name, member):
          '''
          Retrieve the rank for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the rank for a member in the leaderboard.
          '''
          if self.order == self.ASC:
              try:
                  return self.redis_connection.zrank(
                      leaderboard_name, member) + 1
              except:
                  return None
          else:
              try:
                  return self.redis_connection.zrevrank(
                      leaderboard_name, member) + 1
              except:
                  return Nonf rank_for_in(self, leaderboard_name, member):
          '''
          Retrieve the rank for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the rank for a member in the leaderboard.
          '''
          if self.order == self.ASC:
              try:
                  return self.redis_connection.zrank(
                      leaderboard_name, member) + 1
              except:
                  return None
          else:
              try:
                  return self.redis_connection.zrevrank(
                      leaderboard_name, member) + 1
              except:
                  return None
docs: Retrieve the rank for a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @return the rank for a member in the leaderboard.