def METHOD_NAME(config):
    if not isinstance(config, list):
        raise ValidationError("Configuration for watchdog beacon must be a list.")
    _config = {}
    for part in config:
        _config.update(part)
    if "directories" not in _config:
        raise ValidationError(
            "Configuration for watchdog beacon must include directories."
        )
    if not isinstance(_config["directories"], dict):
        raise ValidationError(
            "Configuration for watchdog beacon directories must be a dictionary."
        )
    for path in _config["directories"]:
        _validate_path(_config["directories"][path])