class_docstr: Creates ResourceManager object
  
  This class should be only created by arena instance to manage its resources.
  
  Parameters
  ----------
  arena : dalex.Arena
      Instance of Arena.
  
  Attributes
  --------
  arena : Arena
      Instance of dalex.Arena
  cache : list of Resource objects
      List of already requested resources (both calculated and in progress)
  mutex : _thread.lock
      Mutex for params, plots and resources cache. Should be common with mutex from Arena instance.
  resources : list of classes extending PlotContainer
      List of available resource classes
docstr: Puts new resource to cache
  
  Parameters
  -----------
  resource : Resource
docstr_tok: ["Puts","new","resource","to","cache","Parameters","--","--","--","--","--","-","resource",":","Resource"]
code: def put_to_cache(self, resource):
      """Puts new resource to cache
  
      Parameters
      -----------
      resource : Resource
      """
      if not isinstance(resource, Resource):
          raise Exception("Invalid resource")
      with self.mutex:
          self.cache.append(resource)
  
file_path: DALEX/python/dalex/dalex/arena/_resource_manager.py
imports: from ._resource import Resource
  from .None import resources
label_desc: Use image node_id 3 for calling the ResourceManager obj's underlying member method code with example usage: obj.put_to_cache(resource) without return types