def service_type(stype):
    def inner(f):
        f.service_type = stype
        return f
    return inner
Adds 'service_type' attribute to decorated function.
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/cliutils.py/service_type