human
I wrote the below code

    def converter(self, spec_like, *args, **kwargs):
        if (not isinstance(spec_like, spack.spec.Spec)):
            spec_like = spack.spec.Spec(spec_like)
        return function(self, spec_like, *args, **kwargs)
    return converter

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

def _autospec(function):