def get_service_type(f):
    return getattr(f, 'service_type', None)
Retrieves service type from function.
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/cliutils.py/get_service_type