def _validate_input_for_querying_explainability_result(self, component) -> str:
        """
        Helper that validates the input parameters of a method that queries the `ComponentBasedExplainabilityResult`.

        Parameters
        ----------
        component
            The component for which to return the explanation. Does not
            need to be specified for univariate series.
        """
        # validate component argument
        raise_if(
            component is None and len(self.explained_components) > 1,
            f"The component parameter is required when the `{self.__class__.__name__}` has more than one component.",
            logger,
        )

        if component is None:
            component = self.available_components[0]

        raise_if_not(
            component in self.available_components,
            f"Component {component} is not available. Available components are: {self.available_components}",
            logger,
        )
        return component

        Helper that validates the input parameters of a method that queries the `ComponentBasedExplainabilityResult`.

        Parameters
        ----------
        component
            The component for which to return the explanation. Does not
            need to be specified for univariate series.
        
darts/explainability/explainability_result.py