def shape_rank_bound
import bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend as PermutationMappingimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
432def shape_rank_bound(+shape: Shape.Shape) -> Shape.LE(Shape.rank_dimensions(Shape.dimensions(shape)), 4n):
433 match shape:
434 case Shape.SShape{dimensions, size, exact, ranked, capacity}:
435 ranked