class_docstr: Base class for all `alibi` algorithms. Implements a structured approach to handle metadata.
class_docstr_tok: ["Base","class","for","all","`","alibi","`","algorithms",".","Implements","a","structured","approach","to","handle","metadata","."]
code: def __attrs_post_init__(self):
      # add a name and version to the metadata dictionary
      self.meta["name"] = self.__class__.__name__
      self.meta["version"] = __version__
  
      # expose keys stored in self.meta as attributes of the class.
      for key, value in self.meta.items():
          setattr(self, key, value)
  
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 1 for calling the Base obj's underlying member method code with example usage: obj.__attrs_post_init__() without return types