rank_check# LibUserd.rank_check(rank: int | None) → int# Validate the specified rank number. If the rank is None, return 0. Parameters: rank: Optional[int]The rank number to validate. Returns: intThe validated rank number.