class_docstr: Override Logger to avoid repeated messages.
class_docstr_tok: ["Override","Logger","to","avoid","repeated","messages","."]
code: def _log(
      self, level, msg, *args, **kwargs
  ):  # pylint: disable=signature-differs, arguments-differ
      msg_hash = hash(msg)
      if msg_hash in self.cache:
          return
      self.cache.append(msg_hash)
      super()._log(level, msg, *args, **kwargs)
  
file_path: arviz/arviz/__init__.py
imports: import logging
  import os
  from matplotlib.colors import LinearSegmentedColormap
  from matplotlib.pyplot import style
  import matplotlib
  from .data import *
  from .plots import *
  from .plots.backends import *
  from .stats import *
  from .rcparams import rc_context, rcParams
  from .utils import Numba, Dask, interactive_backend
  from .wrappers import *
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj._log(level, msg) without return types