human
I wrote the below code

    def _execute(pkg):
        when = kwargs.get('when', pkg.name)
        destination = kwargs.get('destination', '')
        placement = kwargs.get('placement', None)
        if os.path.isabs(destination):
            message = 'The    destination    keyword    of    a    resource    directive    '
            "can't    be    an    absolute    path.\n"
            message += " DCTB destination    :    '{dest}\n'".format(dest=destination)
            raise RuntimeError(message)
        test_path = 'stage_folder_root'
        normalized_destination = os.path.normpath(join_path(test_path, destination))
        if (test_path not in normalized_destination):
            message = 'The    destination    folder    of    a    resource    must    fall    '
            'within    the    main    package    stage    directory.\n'
            message += " DCTB destination    :    '{dest}'\n".format(dest=destination)
            raise RuntimeError(message)
        when_spec = parse_anonymous_spec(when, pkg.name)
        resources = pkg.resources.setdefault(when_spec, [])
        name = kwargs.get('name')
        fetcher = from_kwargs(**kwargs)
        resources.append(Resource(name, fetcher, destination, placement))
    return _execute

What's a good function header?

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

@directive('resources')
def resource(**kwargs):