def METHOD_NAME(self, task, config):
    if config is False:
        return
    try:
        import libtorrent  # noqa
    except ImportError:
        raise plugin.DependencyError(
            'convert_magnet', 'libtorrent', 'libtorrent package required', logger
        )