code: def save_resource(plugin_name, resource_name, resource_data):
      
      path = os.path.join(resource_dir_path, plugin_name)
      if not os.path.exists(path):
          os.makedirs(path)
      path = os.path.join(path, resource_name)
      logger.debug("Saving {}".format(path))
      with open(path, 'wb') as f:
          f.write(base64.b64decode(resource_data))
docs: Save a resource in local cache
  
      :param plugin_name: Name of plugin this resource belongs to
      :type plugin_name: str
      :param resource_name: Name of resource
      :type resource_name: str
      :param resource_data: Resource content - base64 encoded
      :type resource_data: str
      :rtype: None