def METHOD_NAME(
    cls,
    data: Dict[str, Any],
    renderer: BaseRenderer,
) -> "SelectorConfig":
    try:
        rendered = renderer.render_data(data)
    except (ValidationError, DbtRuntimeError) as exc:
        raise DbtSelectorsError(
            f"Could not render selector data: {exc}",
            result_type="invalid_selector",
        ) from exc
    return cls.selectors_from_dict(rendered)