Returns the administrative region encoded in input, or null if the spec
does not encode region or the input fails validation.
The returned Region carries the raw token plus a kind discriminant
(state / province / department / municipality / tax_region). Callers can
resolve the token against their own catalog to obtain the human-readable
region name.
Parameters
code: CodesSupporting<"region">
Document type. Must support "region" (see supports).
input: string
Raw user input; will be normalized and validated first.
Returns the administrative region encoded in
input, ornullif the spec does not encode region or the input fails validation.The returned
Regioncarries the raw token plus akinddiscriminant (state / province / department / municipality / tax_region). Callers can resolve the token against their own catalog to obtain the human-readable region name.