def prepare_installed_requirement(self, req, require_hashes, skip_reason):<EOL>
assert req.satisfied_by, "<STR_LIT>"<EOL>assert skip_reason is not None, (<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (req.satisfied_by,)<EOL>)<EOL>logger.info(<EOL>'<STR_LIT>',<EOL>skip_reason, req, req.satisfied_by.version<EOL>)<EOL>with indent_log():<EOL><INDENT>if require_hashes:<EOL><INDENT>logger.debug(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>abstract_dist = Installed(req)<EOL><DEDENT>return abstract_dist<EOL>
Prepare an already-installed requirement