code: def rank_member_in(
              self, leaderboard_name, member, score, member_data=None):
          '''
          Rank a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @param score [float] Member score.
          @param member_data [String] Optional member data.
          '''
          pipeline = self.redis_connection.pipeline()
          if isinstance(self.redis_connection, Redis):
              pipeline.zadd(leaderboard_name, member, score)
          else:
              pipeline.zadd(leaderboard_name, score, member)
          if member_data:
              pipeline.hset(
                  self._member_data_key(leaderboard_name),
                  member,
                  member_data)
          pipeline.execute(f rank_member_in(
              self, leaderboard_name, member, score, member_data=None):
          '''
          Rank a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @param score [float] Member score.
          @param member_data [String] Optional member data.
          '''
          pipeline = self.redis_connection.pipeline()
          if isinstance(self.redis_connection, Redis):
              pipeline.zadd(leaderboard_name, member, score)
          else:
              pipeline.zadd(leaderboard_name, score, member)
          if member_data:
              pipeline.hset(
                  self._member_data_key(leaderboard_name),
                  member,
                  member_data)
          pipeline.execute()
docs: Rank a member in the named leaderboard.
  
          @param leaderboard_name [String] Name of the leaderboard.
          @param member [String] Member name.
          @param score [float] Member score.
          @param member_data [String] Optional member data.