class_docstr: Explanation class returned by explainers.
class_docstr_tok: ["Explanation","class","returned","by","explainers","."]
docstr: This method is purely for deprecating previous behaviour of accessing explanation
  data via items in the returned dictionary.
docstr_tok: ["This","method","is","purely","for","deprecating","previous","behaviour","of","accessing","explanation","data","via","items","in","the","returned","dictionary","."]
code: def __getitem__(self, item):
      """
      This method is purely for deprecating previous behaviour of accessing explanation
      data via items in the returned dictionary.
      """
      import warnings
  
      msg = (
          "The Explanation object is not a dictionary anymore and accessing elements should "
          "be done via attribute access. Accessing via item will stop working in a future version."
      )
      warnings.warn(msg, DeprecationWarning, stacklevel=2)
      return getattr(self, item)
  
imports: import abc
  import json
  import os
  from collections import ChainMap
  from typing import Any, Union
  import logging
  from functools import partial
  import pprint
  import attr
  from alibi.saving import load_explainer, save_explainer, NumpyEncoder
  from alibi.version import __version__
label_desc: Use image node_id 4 for calling the Explanation obj's underlying member method code with example usage: obj.__getitem__(item) and returns: getattr