def METHOD_NAME(
    self,
    explainer_config: ExplainerConfig,
    model_config: ModelConfig,
):
    r"""Connects an explainer and model configuration to the explainer
    algorithm."""
    self._explainer_config = ExplainerConfig.cast(explainer_config)
    self._model_config = ModelConfig.cast(model_config)
    if not self.supports():
        raise ValueError(
            f"The explanation algorithm '{self.__class__.__name__}' does "
            f"not support the given explanation settings.")