@CachedAttribute<EOL><INDENT>def legislator_vote_value(self):<DEDENT>
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>msg = ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>raise ValueError(msg)<EOL><DEDENT>leg_id = self.legislator.id<EOL>for k in ('<STR_LIT:yes>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>for leg in self[k + '<STR_LIT>']:<EOL><INDENT>if leg['<STR_LIT>'] == leg_id:<EOL><INDENT>return k<EOL><DEDENT><DEDENT><DEDENT>
If this vote was accessed through the legislator.votes_manager,
        return the value of this legislator's vote.