human
I wrote the below code

    byrepo = kwargs.pop('byrepo', False)
    cacheonly = kwargs.pop('cacheonly', False)
    fromrepo = (kwargs.pop('fromrepo', '') or '')
    disablerepo = (kwargs.pop('disablerepo', '') or '')
    enablerepo = (kwargs.pop('enablerepo', '') or '')
    repo_arg = _get_repo_options(fromrepo=fromrepo, **kwargs)
    if (fromrepo and (not isinstance(fromrepo, list))):
        try:
            fromrepo = [x.strip() for x in fromrepo.split(',')]
        except AttributeError:
            fromrepo = [x.strip() for x in str(fromrepo).split(',')]
    if (disablerepo and (not isinstance(disablerepo, list))):
        try:
            disablerepo = [x.strip() for x in disablerepo.split(',') if (x != '*')]
        except AttributeError:
            disablerepo = [x.strip() for x in str(disablerepo).split(',') if (x != '*')]
    if (enablerepo and (not isinstance(enablerepo, list))):
        try:
            enablerepo = [x.strip() for x in enablerepo.split(',') if (x != '*')]
        except AttributeError:
            enablerepo = [x.strip() for x in str(enablerepo).split(',') if (x != '*')]
    if fromrepo:
        repos = fromrepo
    else:
        repos = [repo_name for (repo_name, repo_info) in six.iteritems(list_repos()) if ((repo_name in enablerepo) or ((repo_name not in disablerepo) and (str(repo_info.get('enabled', '1')) == '1')))]
    ret = {}
    def _check_args(args, name):
        '\n                                Do    glob    matching    on    args    and    return    True    if    a    match    was    found.\n                                Otherwise,    return    False\n                                '
        for arg in args:
            if fnmatch.fnmatch(name, arg):
                return True
        return False
    def _parse_output(output, strict=False):
        for pkg in _yum_pkginfo(output):
            if (strict and ((pkg.repoid not in repos) or (not _check_args(args, pkg.name)))):
                continue
            repo_dict = ret.setdefault(pkg.repoid, {})
            version_list =...

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

def list_repo_pkgs(*args, **kwargs):