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 extracts and returns the explainability result attribute for a given component.
  
  Parameters
  ----------
  attr
      An explainability result attribute from which to extract the component.
  component
      The component for which to return the content of the attribute.
docstr_tok: ["Helper","that","extracts","and","returns","the","explainability","result","attribute","for","a","given","component",".","Parameters","--","--","--","--","--","attr","An","explainability","result","attribute","from","which","to","extract","the","component",".","component","The","component","for","which","to","return","the","content","of","the","attribute","."]
code: def _query_explainability_result(
      self,
      attr: Union[Dict[str, Any], List[Dict[str, Any]]],
      component: str,
  ) -> Any:
      """
      Helper that extracts and returns the explainability result attribute for a given component.
  
      Parameters
      ----------
      attr
          An explainability result attribute from which to extract the component.
      component
          The component for which to return the content of the attribute.
      """
      component = (
          self._validate_input_for_querying_explainability_result(
              component
          )
      )
      if isinstance(attr, list):
          return [attr_[component] for attr_ in attr]
      else:
          return attr[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 3 for calling the ComponentBasedExplainabilityResult obj's underlying member method code with example usage: obj._query_explainability_result(attr, component) and returns: unknown, attr