Given a country name and optionally a subdivision name, returns the country code or subdivision code per ISO 3166-1 or ISO 3166-2.

Example: