human
I wrote the below code

    def _match(path):
        '    Internal    match    function    '
        try:
            matches = aug.match(path)
        except RuntimeError:
            return {}
        ret = {}
        for _ma in matches:
            ret[_ma] = aug.get(_ma)
        return ret
    load_path = _check_load_paths(load_path)
    aug = _Augeas(loadpath=load_path)
    path = (path.rstrip('/') + '/')
    match_path = (path + '*')
    matches = _match(match_path)
    ret = {}
    for (key, value) in six.iteritems(matches):
        name = _lstrip_word(key, path)
        if _match((key + '/*')):
            ret[(name + '/')] = value
        else:
            ret[name] = value
    return ret

What's a good function header?
assistant
#Here's a good function header.

def ls(path, load_path=None):