<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_resource(plugin_name, resource_name, resource_data):
 """ 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 """

    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))