def _validate_iterables(node, iterables, fields):
 if isinstance(iterables, dict):
  iterables = list(iterables.items())
 elif ((not isinstance(iterables, tuple)) and (not isinstance(iterables, list))):
  raise ValueError((u'The %s iterables type is not a list or a dictionary: %s' % (node.name, iterables.__class__)))
 for item in iterables:
  try:
   if (len(item) != 2):
    raise ValueError((u'The %s iterables is not a [(field, values)] list' % node.name))
  except TypeError as e:
   raise TypeError((u'A %s iterables member is not iterable: %s' % (node.name, e)))
  (field, _) = item
  if (field not in fields):
   raise ValueError((u'The %s iterables field is unrecognized: %s' % (node.name, field)))

def _validate_iterables ( node , iterables , fields ) : if isinstance ( iterables , dict ) : iterables = list ( iterables . items ( ) ) elif ( ( not isinstance ( iterables , tuple ) ) and ( not isinstance ( iterables , list ) ) ) : raise ValueError ( ( u'The %s iterables type is not a list or a dictionary: %s' % ( node . name , iterables . __class__ ) ) ) for item in iterables : try : if ( len ( item ) != 2 ) : raise ValueError ( ( u'The %s iterables is not a [(field, values)] list' % node . name ) ) except TypeError as e : raise TypeError ( ( u'A %s iterables member is not iterable: %s' % ( node . name , e ) ) ) ( field , _ ) = item if ( field not in fields ) : raise ValueError ( ( u'The %s iterables field is unrecognized: %s' % ( node . name , field ) ) )
raise typeerror if an iterables member is not iterable .