def METHOD_NAME(timestamp: datetime, interval_seconds: int) -> datetime:
    time_seconds = timestamp.timestamp()
    out_seconds = interval_seconds * (time_seconds // interval_seconds)
    return datetime.fromtimestamp(out_seconds, timestamp.tzinfo)