def set_policy(vhost, name, pattern, definition, priority=None, runas=None):
    if runas is None:
        runas = salt.utils.get_user()
    if isinstance(definition, dict):
        definition = json.dumps(definition)
    if not isinstance(definition, six.string_types):
        raise SaltInvocationError(
            'The \'definition\' argument must be a dictionary or JSON string'
        )
    cmd = ['rabbitmqctl', 'set_policy', '-p', vhost]
    if priority:
        cmd.extend(['--priority', priority])
    cmd.extend([name, pattern, definition])
    res = __salt__['cmd.run'](cmd, runas=runas, python_shell=False)
    log.debug('Set policy: {0}'.format(res))
    return _format_response(res, 'Set')
Returns a wxColour object specifying the background color
dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/set_policy--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/table_model.py/TableModel.get_cell_bg_color