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

def _filter_version_specific_options(self, tmos_ver, **kwargs):
        '''Filter version-specific optional parameters

        Some optional parameters only exist in v12.1.0 and greater,
        filter these out for earlier versions to allow backward comatibility.
        '''

        if LooseVersion(tmos_ver) < LooseVersion('12.1.0'):
            for k, parms in self._meta_data['optional_parameters'].items():
                for r in kwargs.get(k, []):
                    for parm in parms:
                        value = r.pop(parm, None)
                        if value is not None:
                            logger.info(
                                "Policy parameter %s:%s is invalid for v%s",
                                k, parm, tmos_ver)