def METHOD_NAME(module, required_version):
    """utility to check for version compatibility"""
    from distutils.version import StrictVersion
    if StrictVersion(__version__) < StrictVersion(required_version):
        raise UnsupportedFeature("%s requires weewx %s or greater, found %s"
                                 % (module, required_version, __version__))