Where the jury finds a verdict of guilty, and fails to agree on the punishment to be inflicted, or does not declare such punishment by their verdict, the court shall assess and declare the punishment and render the judgment accordingly.
Okla. Stat. tit. 22, § 927.1