#include "tensorstore/rank.h" constexpr bool tensorstore::IsValidRank(DimensionIndex rank); Checks if rank is a valid rank value.