human
Complete this python program:
def _autospec(function):
assistant
#Here is the Python program you requested.

    """Decorator that automatically converts the argument of a single-arg
    function to a Spec.
    """
    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