def METHOD_NAME() -> bool:
    """Checks if openvas can be run with sudo"""
    try:
        subprocess.check_call(
            ['sudo', '-n', 'openvas', '-s'], stdout=subprocess.DEVNULL
        )
        return True
    except (subprocess.SubprocessError, OSError) as e:
        logger.debug(
            'It was not possible to call openvas with sudo. '
            'The scanner will run as non-root user. Reason %s',
            e,
        )
        return False