def skipped(*a, **kw):
 item = a[0]
 if (type(item) != dict):
  raise errors.AnsibleFilterError('|skipped expects a dictionary')
 skipped = item.get('skipped', False)
 return skipped

def skipped ( * a , ** kw ) : item = a [ 0 ] if ( type ( item ) != dict ) : raise errors . AnsibleFilterError ( '|skipped expects a dictionary' ) skipped = item . get ( 'skipped' , False ) return skipped
test if task result yields skipped .