def METHOD_NAME(self, task, config):
    try:
        import periscope  # noqa
    except ImportError as e:
        logger.debug('Error importing Periscope: {}', e)
        raise plugin.DependencyError(
            'periscope', 'periscope', 'Periscope module required. ImportError: %s' % e
        )