def is_package_installed(distribution, pkg):
if ('<STR_LIT>' in distribution or<EOL>'<STR_LIT>' in distribution or<EOL>'<STR_LIT>' in distribution):<EOL><INDENT>return(is_rpm_package_installed(pkg))<EOL><DEDENT>if ('<STR_LIT>' in distribution or<EOL>'<STR_LIT>' in distribution):<EOL><INDENT>return(is_deb_package_installed(pkg))<EOL><DEDENT>
checks if a particular package is installed