def flat_checked
import bendtorch-core@0.1.0.0/src/shape/core.bend as Coreimport Base
695def flat_checked(+shape: Shape, +index: Nat) -> Result<&2, &2, Error, FlatIndex<shape>>:
696 flat_checked.finish(shape, index, bool_case(Nat.is_lt(index, elements(shape))))