<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _revcheck(self, func, version):
        '''
        Internal function to see if a version is func than what we have
        determined to be talking to.  This is very useful for newer API calls
        to make sure we don't accidentally make a call to something that
        doesnt exist.
        '''
        current = self._revint(self.version)
        check = self._revint(version)
        if func in ('lt', '<=',):
            return check <= current
        elif func in ('gt', '>='):
            return check >= current
        elif func in ('eq', '=', 'equals'):
            return check == current
        else:
            return False