def written_count_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
138def written_count_pair(+shape: Shape.Shape, pair: Core.Tensor<shape> & Result<&2, &2, Core.Error, Unit>) -> Maybe<&2, U32>:
139 (tensor, result) = pair
140 count_pair(Core.count(Core.pack(shape, tensor)))