class_docstr: Explainability result for general component objects.
  The explained components can describe anything.
  
  Example
  -------
  >>> explainer = SomeComponentBasedExplainer(model)
  >>> explain_results = explainer.explain()
  >>> output = explain_results.get_explanation(component="some_component")
class_docstr_tok: ["Explainability","result","for","general","component","objects",".","The","explained","components","can","describe","anything",".","Example","--","--","--","-",">",">",">","explainer","=","SomeComponentBasedExplainer","(","model",")",">",">",">","explain_results","=","explainer.explain","(",")",">",">",">","output","=","explain_results.get_explanation","(","component=","''","some_component","''",")"]
docstr: 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.
docstr_tok: ["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","."]
code: 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
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Optional, Union
  import pandas
  import shap
  from darts import TimeSeries
  from darts.logging import get_logger, raise_if, raise_if_not, raise_log
label_desc: Use image node_id 4 for calling the ComponentBasedExplainabilityResult obj's underlying member method code with example usage: obj._validate_input_for_querying_explainability_result(component) and returns: component