class_docstr: Creates PlotsManager object
  
  This class should be only created by arena instance to manage its plots.
  
  Parameters
  ----------
  arena : dalex.Arena
      Instance of Arena.
  
  Attributes
  --------
  arena : Arena
      Instance of dalex.Arena
  cache : list of PlotContainer objects
      List of already calculated plots
  mutex : _thread.lock
      Mutex for params, plots and resources cache. Should be common with mutex from Arena instance.
  plots : list of classes extending PlotContainer
      List of available plot classes
docstr: Clears cache
  
  Parameters
  -----------
  plot_type : str or None
      If None all cache is cleared. Otherwise only plots with
      provided plot_type are removed.
  
  Notes
  -------
  This function must be called from mutex context
code: def clear_cache(self, plot_type=None):
      """Clears cache
  
      Parameters
      -----------
      plot_type : str or None
          If None all cache is cleared. Otherwise only plots with
          provided plot_type are removed.
  
      Notes
      -------
      This function must be called from mutex context
      """
      if plot_type is None:
          self.cache = []
      else:
          self.cache = list(
              filter(lambda p: p.plot_type != plot_type, self.cache)
          )
      self.arena.update_timestamp()
  
file_path: DALEX/python/dalex/dalex/arena/_plots_manager.py
imports: import time
  from .None import plots
  from tqdm import tqdm
  from ._plot_container import PlotContainer
label_desc: Use image node_id 3 for calling the PlotsManager obj's underlying member method code with example usage: obj.clear_cache(plot_type) without return types