def option(value, default='', opts=None, pillar=None):
    if opts is None:
        opts = {}
    if pillar is None:
        pillar = {}
    sources = (
        (opts, value),
        (pillar, 'master:{0}'.format(value)),
        (pillar, value),
    )
    for source, val in sources:
        out = traverse_dict_and_list(source, val, default)
        if out is not default:
            return out
    return default
Pass in a generic option and receive the value that will be assigned
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/option