#include "tensorstore/rank.h" absl::Status tensorstore::ValidateRank(DimensionIndex rank); Validates that 0 <= rank <= kMaxRank. Error absl::StatusCode::kInvalidArgument:¶ if rank is not valid.