def METHOD_NAME(container, name, path, profile, overwrite_existing=False):
    """
    Ensures a object is downloaded locally.
    :param container: Container name
    :type  container: ``str``
    :param name: Object name in cloud
    :type  name: ``str``
    :param path: Local path to file
    :type  path: ``str``
    :param profile: The profile key
    :type  profile: ``str``
    :param overwrite_existing: Replace if already exists
    :type  overwrite_existing: ``bool``
    """
    result = __salt__["libcloud_storage.download_object"](
        container, name, path, profile, overwrite_existing
    )
    return state_result(result, "Downloaded object", name, {})