Ensures term is one of the stream_property/2 shapes this implementation actually reports for open/4's option list (input, output, alias(_), type(text), eof_action(eof_code), reposition(false)).
stream_property/2
open/4
input
output
alias(_)
type(text)
eof_action(eof_code)
reposition(false)
if term is a valid-but-unsupported property value (e.g. type(binary)).
type(binary)