code: def SetUpperTimestamp(cls, timestamp):
      
      if not hasattr(cls, '_upper'):
        cls._upper = timestamp
        return
  
      if timestamp > cls._upper:
        cls._upper = timestamp
docs: Sets the upper bound timestamp.