Every person who has been convicted in any other state, government or country of an offense which, if committed within this state, would be punishable by the laws of this state by imprisonment in the penitentiary, is punishable for any subsequent crime committed within this state, in the manner prescribed in Section 434, 435 or 436 of this act, and to the same extent as if such first conviction had taken place in a court of this state.
Okla. Stat. tit. 21, § 54