code: def remove_by_rank(self, low, high=None):
          
          if high is None:
              high = low
          return self.database.zremrangebyrank(self.key, low, high)
docs: Remove elements from the ZSet by their rank (relative position).
  
          :param low: Lower bound.
          :param high: Upper bound.