def _is_inline_definition(arg):
    return isinstance(arg, dict) and len(arg) == 1 and isinstance(next(six.itervalues(arg)), list)
Returns True, if arg is an inline definition of a statement.
dataset/ETHPy150Open saltstack/salt/salt/modules/syslog_ng.py/_is_inline_definition