def install_oracle_java(distribution, java_version):
if '<STR_LIT>' in distribution:<EOL><INDENT>accept_oracle_license = ('<STR_LIT>'<EOL>'<STR_LIT>' + java_version + '<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>with settings(hide('<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>sudo(accept_oracle_license)<EOL><DEDENT>with settings(hide('<STR_LIT>', '<STR_LIT>'),<EOL>prompts={"<STR_LIT>": "<STR_LIT:yes>"}): <EOL><INDENT>sudo("<STR_LIT>")<EOL><DEDENT>with settings(hide('<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>sudo('<STR_LIT>')<EOL>apt_install(packages=['<STR_LIT>',<EOL>'<STR_LIT>'])<EOL><DEDENT><DEDENT>
installs oracle java