def length_owner_dimensions_pair
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observationimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
385def length_owner_dimensions_pair(+shape: Shape.Shape, pair: Core.Tensor<shape> & Nat) -> Maybe<&2, List<&2, U32>>:
386 (tensor, n) = pair
387 dimensions_pair(Core.shape(Core.pack(shape, tensor)))