<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _convert_external(bundle, name, external):
 """ Converts external documentation to resource dict ready to save to CKAN. """

    # http://docs.ckan.org/en/latest/api/#ckan.logic.action.create.resource_create
    ret = {
        'package_id': bundle.dataset.vid.lower(),
        'url': external.url,
        'description': external.description,
        'name': name,
    }

    return ret