Asserts that the given value matches the given shape and returns the original value if so.
value
Optional
ShapeMismatchError if value does not match the shape.
ShapeMismatchError
Asserts that the given value matches the given shape and returns the original
value
if so.