fn
require_rank
void require_rank(const int & sh, int rank, const int & what, const int & layout)Refuse a shape whose rank is not rank: ShapeMismatch (a ValueError) with both ranks. The expected shape is printed with a -1 wildcard per axis.